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
version: '2' | |
services: | |
ghost: | |
image: ghost | |
environment: | |
VIRTUAL_HOST: robertcunningham.xyz | |
VIRTUAL_PORT: 2368 | |
LETSENCRYPT_HOST: robertcunningham.xyz | |
LETSENCRYPT_EMAIL: your_email@gmail.com | |
url: https://robertcunningham.xyz |
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
if (current_uid() != 0) { | |
return 0; | |
} |
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
Java.perform(function () { | |
['java.lang.StringBuilder', 'java.lang.StringBuffer'].map(function (c) { | |
Java.use(c)['toString'].implementation = function () { | |
var ret = this['toString'](); | |
console.log("a", ret, getStackTrace()) | |
return ret | |
} | |
}); | |
}); |
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 open = new NativeFunction(Module.findExportByName('libc.so', 'open'), 'pointer', ['pointer', 'int']); | |
Interceptor.replace(open, new NativeCallback(function (path, mode) { | |
console.log('opening', Memory.readUtf8String(path)) | |
return open(path, mode) | |
}, 'pointer', ['pointer', 'int'])) |
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
Java.enumerateLoadedClassesSync().map(function (a) { | |
if (a.includes('your_package')) { | |
console.log(a) | |
} | |
}) |
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 frida | |
import time | |
def on_message(m): | |
print(m['payload']) | |
device = frida.get_usb_device() | |
pid = device.spawn(["com.your.android.package"]) | |
print("PID is", pid) |