nowsecure / r2frida

Radare2 and Frida better together.
MIT License
1.18k stars 121 forks source link

"expected a NativePointer object" #111

Closed bannsec closed 5 years ago

bannsec commented 5 years ago

In playing with r2frida and following the r2con talk about it, i was trying the \dxc command. Unfortunately, it only errors out for me with this error:

[0x00000000]> \dxc main
expected a NativePointer object

[0x00000000]> \dmas "Hello world"
0x7f6ca2357a60

[0x00000000]> \dxc main 0x7f6ca2357a60
expected a NativePointer object

I'm using the pip version of r2rfrida and this r2:

radare2 3.4.0-git 1 @ linux-x86-64 git.3.4.0-git
commit: 8e1da330b64f4c83b8f0cc9697ba635304ce1ce6 build: 2019-03-08__06:10:25
mrmacete commented 5 years ago

probably main is not a symbol, try to see what symbols you get with \is and if main is among them, and/or use the address instead of the name if you know it

trufae commented 5 years ago

Even if the symbol name is not there i agree that the error message should be more friendly

On 17 Mar 2019, at 19:48, Francesco Tamagni notifications@github.com wrote:

probably main is not a symbol, try to see what symbols you get with \is and if main is among them, and/or use the address instead of the name if you know it

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

oleavr commented 5 years ago

Typically this means Module.findExportByName() is used instead of Module.getExportByName().