Page 1 of 1

Byte patch

Posted: Sun Jan 19, 2020 6:31 am
by InvisibleSoldiers
Is it possible to bytepatch binary in-memory via Python and if yes what is the best way?

Re: Byte patch

Posted: Sun Jan 19, 2020 6:46 am
by Sam
InvisibleSoldiers wrote:Is it possible to bytepatch binary in-memory via Python and if yes what is the best way?


1. Yes
2. The best way. The one you like. (LLPL, API and etc)

Re: Byte patch

Posted: Sun Jan 19, 2020 8:20 am
by Ayuto
Yes, we have developed a feature rich module for various memory hacking operations.
http://wiki.sourcepython.com/developing ... ule-memory

If you want to byte-patch a binary in memory, you first need to get the binary using find_binary, then search for the location where you would like to apply your patch, and the use the set_<type> methods of the Pointer class to apply the patch. Here on the forums there should be 1-2 examples.