mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* Android script loading bug fix * Frida injected code view * Paramiko SSH reactor to address some host key issues, revert from warning to autoadd. * Frida Injection refactoring
16 lines
548 B
JavaScript
16 lines
548 B
JavaScript
// Get caller of the function using backtrace
|
|
|
|
// From: https://node-security.com/posts/frida-for-ios/
|
|
function getBacktrace(){
|
|
send('Get the caller of the function using backtrace');
|
|
Interceptor.attach(ObjC.classes.NSFileManager['- fileExistsAtPath:'].implementation, {
|
|
onEnter: function (args) {
|
|
const backtrace = Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress).join("\n");
|
|
console.log(backtrace + "\n");
|
|
console.log(ObjC.Object(args[2]).toString());
|
|
}
|
|
});
|
|
}
|
|
try {
|
|
getBacktrace();
|
|
} catch(err) {} |