MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Thu Jun 19, 2008 12:18 am Post subject: Adding my own code into a .exe. |
|
|
For some reason this seems like it should be very easy, but I can't seem to grasp anyway of doing it. I am trying to take some code and convert it to hex and then add it into an empty spot in a .exe. Then I will jump to my code from a function to run my code. Basically, it will be like jumping to ASM or AA code. I don't want to use DLL injection or anything like that. I need to implement my own code inside of an already existing .exe. Does anyone know of a way to do this. Any information would be appreciated. I know C++ and ASM if that helps.
Edit: An example would be adding something like this into the .exe:
| Code: |
for(int i=0; i<2; i++)
{
MessageBox(NULL, "Hello", "Alert", MB_OK);
} |
That is just an example, but hopefully it gets my point across. Ultimately I want to be able to add a function that connects to a server running on my PC to verify that the .exe should be running. If not, it would then terminate the .exe. It is going to be a form of hack prevention and that is why I don't want an external program.
Edit2: Sorry, I think I figured it out. |
|