Byte patch

Please post any questions about developing your plugin here. Please use the search function before posting!
InvisibleSoldiers
Senior Member
Posts: 114
Joined: Fri Mar 15, 2019 6:08 am

Byte patch

Postby InvisibleSoldiers » Sun Jan 19, 2020 6:31 am

Is it possible to bytepatch binary in-memory via Python and if yes what is the best way?
Sam
Senior Member
Posts: 100
Joined: Tue Jul 03, 2018 3:00 pm
Location: *DELETED*
Contact:

Re: Byte patch

Postby Sam » Sun Jan 19, 2020 6:46 am

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)
Last edited by Sam on Sun Jan 19, 2020 6:46 am, edited 1 time in total.
Reason: Original post version
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Byte patch

Postby Ayuto » Sun Jan 19, 2020 8:20 am

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.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 26 guests