This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of Androguard. | |
# | |
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr> | |
# All rights reserved. | |
# | |
# Androguard is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from sys import argv | |
from sys import exit | |
import os | |
from androguard.core.bytecodes import apk | |
from androguard.core.bytecodes import dvm | |
from androguard.decompiler.dad import decompile | |
from androguard.core.analysis import analysis | |
def convert_descriptor(name): | |
name = name[1:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import threading | |
from sys import argv | |
from sys import exit | |
""" | |
**Please note this class finds factors not prime factors, I cut the example short because its 1am in the morning here (-__-) | |
Spawn a whole bunch of threads from a single process and check if each have completed their task | |
""" | |
class StoppableThread(threading.Thread): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
import struct | |
""" | |
ROP Exploit for RM converter example from Corelans blog, written here for educational purposes | |
Tested on: Windows 7 32bit Ultimate | |
author: Keith (k3170) Makan | |
Refs: | |
http://www.fuzzysecurity.com/tutorials/expDev/7.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from base64 import b64encode,b64decode | |
import readline | |
import struct | |
from Crypto.Cipher import AES | |
from sys import argv,exit | |
from os import urandom | |
from random import random | |
BS = 16 | |
pad = lambda s: s + (BS - len(s) % BS) * chr((BS - len(s) % BS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Disclaimer | |
The encryption algorithm included in this file is not be used for the protection of information. It is merely purposed to aid education. | |
The author does not except any responisiblity for its use. | |
- Keith Makan | |
""" | |
from random import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Sound Sensor with Neo Pixel indicator. | |
this little sketch correlates the MEMs Microphone onthe board to the nep pixels for out put. | |
the sketch also tries to perform a rough attempt at dynamically changing the max and min ranges to keep the neo pixels lively | |
should the ambient sound change. | |
developed by Keith Makan (@k3170makan) | |
https://www.adafruit.com/product/3000 | |
**/ | |
#include <Adafruit_CircuitPlayground.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from sys import argv | |
from androguard.core.bytecodes import apk | |
from androguard.core.bytecodes import dvm | |
if __name__=="__main__": | |
a = apk.APK(argv[1]) | |
d = dvm.DalvikVMFormat(a.get_dex()) | |
for current_class in d.get_classes(): | |
for method in current_class.get_methods(): | |
print "[*] ",method.get_name(), method.get_descriptor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import os | |
class diffme: #numerical implementation of the diff me cipher | |
""" | |
sbox() | |
""" | |
def __init__(self,k_1,k_2,p): | |
self.sbox = dict({0:3,1:14,2:1,3:10,4:4,5:9,6:5,7:6,8:8,9:11,10:15,11:2,12:13,13:12,14:0,15:7}) #substitutionbox | |
self.k_1 = k_1 #round key 1 | |
self.k_2 = k_2 #round key 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Basic set up for an Application AndroidManifest Fuzzer | |
#this requires a preexisting ant buildable application project to be set up! so get the SDK and ant1.8 | |
#this file reproduces the bug mentioned here http://ibrahimbalic.com/2014/android-os-memory-corruption-bug/ | |
#NOTE: values from 260000 and up cause SIGSEGvs to be sent to the system_server (test on KitKat 4.4.2) | |
#NOTE: you should probably monitor $(adb logcat)||(/system/bin/gdbserver) for responsiveness to the issue | |
APP_PROJ_DIR="..." #<-- PATH TO PROJ DIR | |
APP_PACKAGE_NAME="..." #<-- PACKAGE NAME | |
APP_LAUNCH_COMP="..." # <--- MAIN ACTIVITY NAME |
OlderNewer