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
class Shrimp: | |
def __init__(self, name, pH, kH, gH): | |
self.name = name | |
self.kH = kH | |
self.pH = pH | |
self.gH = gH | |
def canSurvive(self, pH,kH,gH): | |
print("="*10) | |
print(self.name) |
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 re import sub | |
import subprocess | |
import sys | |
import re | |
from bs4 import BeautifulSoup | |
import time | |
def dump_layout(): | |
path_out = subprocess.check_output(["adb", "shell", "uiautomator", "dump"]) | |
path_out = path_out.split(b': ')[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/python3 | |
import frida | |
import subprocess | |
import sys | |
if len(sys.argv) !=2: | |
print(f"[-] Usage : python3 {sys.argv[0]} <package_to_uninstall>") | |
sys.exit(-1) | |
def message(message, data): |
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
/* | |
Run this script : | |
$> frida -U -l bypass-throttle.js gatekeeperd | |
Explainations : | |
Bypass android throttle when pincode is wrong | |
Frida enumeration : |
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 argparse | |
import json | |
predefined_struct = { | |
"UnityEngine_Vector3_o" : [("float","x"),("float","y"),("float","z")] | |
} | |
def extract_class_methods(methods_informations, clazz): | |
""" | |
We check if the signature start with the class we want to hook, if so |
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
var library_name = "libil2cpp.so"; | |
var library_loaded = 0; | |
var base_address = 0; | |
// frida -U -l script.js -f com.youmusic.magictiles --no-pause | |
var parse_tile_base_o = function(tile_base_o) { | |
return { | |
tileSizeX : tile_base_o.add(0x6c).readFloat(), |
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 binascii import hexlify | |
import sys | |
import re | |
# PDF TEMPLATE, index number should be shifted enough to avoid collision with number of the object | |
# we want to exfiltrate | |
PDF_TEMPLATE = """%PDF-2.0 | |
100 0 obj |
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 sys | |
import zlib | |
import json | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import pad, unpad | |
magic_number = b"ACBJA\x01\x00" | |
def uncipherAES(data : bytes): |
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
const simulated_latitude = 48.8534 | |
const simulated_longitude = 2.3488 | |
Java.perform(function(){ | |
const Location = Java.use('android.location.Location') | |
var location = Location.$new("gps") | |
location.setLatitude(simulated_latitude) | |
location.setLongitude(simulated_longitude) |
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/python2.7 | |
# coding: utf8 | |
import subprocess | |
import time | |
import itertools as it | |
import commands | |
import sys | |
base_command = "adb shell " |
NewerOlder