objection icon indicating copy to clipboard operation
objection copied to clipboard

(feat) Added memory replace command.

Open IPMegladon opened this issue 2 years ago • 1 comments

Added memory replace "<search pattern eg: 41 41 ?? 41>" "<replace value eg: 41 50>" (--string-pattern) (--string-replace) command.

--string-pattern is used to specify the search input is a string. --string-replace is used to specify the replace input is a string. Only searches ('rw-') memory space, can look at adding support for searching all memory and automatically changing perms with frida's Memory.protect().

Added some simple tests for it, though they by no means cover everything.

The naming of some of the parameters may not be the best, though I was not sure what else to call them.

IPMegladon avatar Jan 09 '24 10:01 IPMegladon

Awesome PR! :)

I unfortunately didn't have time to test it, but at a glance it looks good (and useful!)

CDuPlooy avatar Jan 09 '24 18:01 CDuPlooy