Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Added memory replace command. #656

Merged
merged 2 commits into from
May 23, 2024
Merged

Conversation

IPMegladon
Copy link
Collaborator

@IPMegladon IPMegladon commented Jan 9, 2024

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 IPMegladon marked this pull request as ready for review January 9, 2024 11:47
@CDuPlooy
Copy link
Contributor

CDuPlooy commented Jan 9, 2024

Awesome PR! :)

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

@leonjza leonjza merged commit d983234 into sensepost:master May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants