(feat) Added memory replace command.
Added memory replace "<search pattern eg: 41 41 ?? 41>" "<replace value eg: 41 50>" (--string-pattern) (--string-replace) command.
--string-patternis used to specify the search input is a string.--string-replaceis 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'sMemory.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.
Awesome PR! :)
I unfortunately didn't have time to test it, but at a glance it looks good (and useful!)