Android: `wa ret` is not allowed in R2Frida session. `error: expected a pointer`
enovella opened this issue · comments
Eduardo Novella commented
More info & sample at: #556
Problem
We cannot perform in-memory patching
Old slides with right inmem patching
More info
[0x751067cad4]> wa ret
ERROR: error: expected a pointer
ERROR: Cannot write. Use `omf`, `io.cache` or reopen the file in rw with `oo+`
[0x751067cad4]> wx c0035fd6
ERROR: error: expected a pointer
ERROR: Cannot write. Use `omf`, `io.cache` or reopen the file in rw with `oo+`
[0x751067cad4]> wx 0xc0035fd6
ERROR: error: expected a pointer
ERROR: Cannot write. Use `omf`, `io.cache` or reopen the file in rw with `oo+`
[0x751067cad4]>
Memory permissions: :dmp failing
Eduardo Novella commented
@trufae was io.cache
set to false by default before?
pancake commented
if io.cache is enabled then you are not patching anything. on linux, mac and ios all these commands works fine, , wa, wx and dmp work as it should
Murphy commented
Murphy commented
Eduardo Novella commented
Eduardo Novella commented
Eduardo Novella commented
It works on a cleaned installation, tested with @as0ler