nowsecure / r2frida

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

Problems when compiling r2frida with make #101

Closed enovella closed 6 years ago

enovella commented 6 years ago

If r2pm is used to install r2frida no problems are found. However, when compiling the project I encounter this error:

$ r2 frida:///bin/ls
[r] Cannot open 'frida:///bin/ls'

If you uninstall it with r2pm, the error is the same:

$ r2pm -u r2frida
Already up to date.
Uninstall Done For r2frida
rm -f /"/home/edu/.local/share/radare2/plugins/io_frida.so"
$ r2 frida:///bin/ls
[r] Cannot open 'frida:///bin/ls'

Therefore, the manual compilation misses something.

trufae commented 6 years ago

Use R_DEBUG=1 r2 -L to determine why the plugin can't be loaded

trufae commented 6 years ago

how are you compiling the project to not get it working? see what r2pm does

trufae commented 6 years ago

its expected to get this error if the plugin is not installed

enovella commented 6 years ago

My bad! Forgot to install it

Tasfa commented 4 years ago

what plugin?

radare commented 4 years ago

r2frida is a plugin

ethan-1106 commented 4 years ago

Hi radare, My installed radare2 that cannot open frida. I installed the r2frida plugin:

RDEBUG=1 r2 -L ... rw frida frida:// io plugin (MIT)

Environment Information:

Screen Shot 2020-09-05 at 14 33 13

Kindly help me troubleshooting

trufae commented 4 years ago

The variable is R2_DEBUG

jtibaquira commented 3 years ago

Hi I'm trying to load the r2frida plugin but I get some errors.

I use r2 from git and I installed the plugin using r2pm commands. these are the outputs of the terminal.

Screen Shot 2020-12-14 at 12 34 52 PM Screen Shot 2020-12-14 at 1 08 54 PM Screen Shot 2020-12-14 at 1 08 38 PM Screen Shot 2020-12-14 at 1 10 14 PM Screen Shot 2020-12-14 at 1 10 04 PM

thks

enovella commented 3 years ago

Hi @jtibaquira,

How are you "loading" the r2frida plugin? What are you exactly trying to achieve?

enovella commented 3 years ago

Can you execute this command? @jtibaquira

$ r2 frida://0
 -- Everybody hates warnings. Mr. Pancake, tear down this -Wall
[0x00000000]> \?
r2frida commands available via =! or \ prefix
. script                   Run script
  frida-expression         Run given expression inside the agent
/[x][j] <string|hexpairs>  Search hex/string pattern in memory ranges (see search.in=?)
/v[1248][j] value          Search for a value honoring `e cfg.bigendian` of given width
/w[j] string               Search wide string
<space> code..             Evaluate Cycript code
?                          Show this help
?V                         Show target Frida version
chcon file                 Change SELinux context (dl might require this)
d.                         Start the chrome tools debugger
... 
enovella commented 3 years ago

You can take a crack at this wiki

trufae commented 3 years ago

You are using deprecated uris. Please check the r2 “frida://?” Help message

jtibaquira commented 3 years ago

You are using deprecated uris. Please check the r2 “frida://?” Help message

thanks, @trufae @enovella, yes I was using deprecated uris, now is working.

Screen Shot 2020-12-14 at 3 04 46 PM Screen Shot 2020-12-14 at 3 05 06 PM