r2frida
r2frida copied to clipboard
Support Java objects in \dtf
globally we set
let Foo;
Java.performNow(() => {
Foo = Java.use('com.bar.Foo');
});
inside the hook:
const foo = Java.cast(args[2], Foo);
We can automatically resolve the type of object or show the obj type dynamically. That will be slower but more flexible if we dont know the fcn signature
this can be done by casting to java.lang.Object and then looking at $className
On 23 May 2019, at 22:15, Sergi Àlvarez i Capilla [email protected] wrote:
globally we set
let Foo; Java.performNow(() => { Foo = Java.use('com.bar.Foo'); }); inside the hook:
const foo = Java.cast(args[2], Foo); — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.