stalker onCallSummary

This commit is contained in:
iddoeldor 2019-05-16 20:34:59 +03:00 committed by GitHub
parent 08200a5d73
commit d00d54e1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,15 @@ Interceptor.attach(ObjC.classes.MyClass['- myMethod:param1'].implementation, {
events: { events: {
call: true call: true
}, },
/*
onCallSummary: function (summary) {
Object.keys(summary).forEach(s => {
var sym = DebugSymbol.fromAddress(ptr(s));
if (sym.moduleName == 'Viber')
console.log(summary[s], sym.name);
})
}
*/
transform: function (iterator) { transform: function (iterator) {
var instruction; var instruction;
while ((instruction = iterator.next()) !== null) { while ((instruction = iterator.next()) !== null) {