print thread backtrace
This commit is contained in:
parent
1a41f6f588
commit
c60a077821
@ -71,7 +71,10 @@ Interceptor.attach(Module.findExportByName(null, "dlopen"), {
|
||||
var offset = Module.findBaseAddress("libfoo.so"); // Process.findModuleByName("libfoo.so").base) will also work
|
||||
Interceptor.attach(offset.add(funcAddr), {
|
||||
onEnter: function(args) {
|
||||
console.log('hooked !');
|
||||
console.log('hooked !');
|
||||
Thread.backtrace(this.context, Backtracer.ACCURATE).forEach(function(addr) {
|
||||
console.log('\t' + addr + ' : ' + DebugSymbol.fromAddress(addr));
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user