Patchers in c++
Can someone give me an example of a simple patcher in c++,which uses fseek(),fwrite() and such functions please....i thought of doing it like this...but i think it's wrong
The Bytes i want to patch is at File Offset : 5B1 (1457)
and the bytes look like 6886304000 (push 00403068)
i want to push 00000000 at this Offset...how do i do this?
cout <<"::::Open File unsuccessful" << endl;
cout <<"::::Open File Successful" << endl;
cout <<"::::Bytes written" << endl;
Open it for binary access, and then use fwrite( ). Actually, if you're doing it in C++ you should be using an ofstream.
How do you know the exact offset you want to patch? I'm interested in how this works.
Use a dissassembler like Wdasm and you get the offset ...: )
What can you use patches for? Legally, I mean.
All kinds of things....like changing jumps and calls...make a button do something else then it's intended purpose...patch errors
Could you direct me to a good patching tutorial site?
Nope...i don't have any sites...otherwise i wouldn't be asking in this forum:p