Click to See Complete Forum and Search --> : Executable patcher


anuradh_a
November 20th, 2007, 01:09 AM
hi
can any one tell me how can i create an Executable patcher???
thanks

ovidiucucu
November 20th, 2007, 08:20 AM
What is an "executable patcher".
Please detail!

Marc G
November 20th, 2007, 10:20 AM
See for example http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9331/ or http://www.codeproject.com/tools/updater.asp

anuradh_a
November 26th, 2007, 02:43 AM
hi
first thanks for the replies.
executable patcher is software that can be use to modify PE files
so can any one tell me how can I create an executable patcher???
thanks

Igor Vartanov
November 26th, 2007, 08:32 AM
hi
first thanks for the replies.
executable patcher is software that can be use to modify PE files
so can any one tell me how can I create an executable patcher???
thanksOnce the executable appears to be a PE file, you just start with creating an abstract file patcher, then you make it intelligent enough to be aware of PE file format - and finally patch it correspondingly. ;)

Now seriously, I hardly can understand what exact help is expected by you. Do you think the exe patching is kinda trivial thing that could be explained in a couple of messages? :D

anuradh_a
November 28th, 2007, 04:19 AM
HI

"Do you think the exe patching is kinda trivial thing that could be explained in a couple of messages? "

no . what i'm asking is a tutorial (some link to a tutorial)
and i'm pretty sure that i'm not breaking the forum's rules.

Igor Vartanov
November 28th, 2007, 05:00 AM
what i'm asking is a tutorial (some link to a tutorial)Well, now you sound a lot clearer. :)

and i'm pretty sure that i'm not breaking the forum's rules.Sure you are not, you're just asking.

But you know what? Just two things:
I'm not sure the exe patching looks like some normal development activity (remember? this is developers' forum). I still never met a developer who mended his products by patching binaries. ;)
The binary patching is something to do with raw machine codes (you know - direct addressing, instruction alignment, code sections, data sections, and lots and lots of other headache-provoking things). That's why I think your question fits some Assembly Language forums pretty much better. Hope you find this reasonable. :)

iviggers
December 5th, 2007, 10:19 AM
Hi,
In general terms you just need to write an application that opens the target file (.exe, .com, .dat, etc), locates the section to be patched, overwrites according to the new pattern and closes the file.

In the cases like PE (Portable Executable in Win32) or ELF (Linux) make sure you don't overwrite some critical byte(s). Examples are PE mark, MZ.

anuradh_a
December 20th, 2007, 12:09 AM
hi
first thanks for the replies.
thats mean i have to find the exact offset of the section.
how can i count this offset ?
thanks.

PeejAvery
December 20th, 2007, 09:12 AM
[ merged ]