r2frida icon indicating copy to clipboard operation
r2frida copied to clipboard

Support Java objects in \dtf

Open trufae opened this issue 6 years ago • 1 comments

globally we set

let Foo;
Java.performNow(() => {
  Foo = Java.use('com.bar.Foo');
});

inside the hook:

const foo = Java.cast(args[2], Foo);

trufae avatar May 23 '19 20:05 trufae

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.

radare avatar May 24 '19 07:05 radare