| View previous topic :: View next topic |
| Author |
Message |
neowrs Newbie cheater
Reputation: 0
Joined: 07 Oct 2015 Posts: 15
|
Posted: Sun Dec 13, 2015 11:49 am Post subject: C# Jmp Mov |
|
|
___asm
{
mov [ebp-0000004C],eax
}
how can write something using C# to eax such as mov [ebp-0000004C],001E9874 <<< something like that
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Dec 13, 2015 12:16 pm Post subject: |
|
|
Use WriteProcessMemory to write the bytes which make up that instruction.
Since your new instruction takes up more space than the original, you'll need to find something else to get rid of.
If you're lucky, you'll no longer require EAX anywhere.
So if the previous instruction sets EAX, you can overwrite it as well.
Otherwise, you'll need to allocate new memory and write the corresponding bytes responsible for jumping (like CE does).
Use the search at the top of the forums for writing code caves and jump routines.
|
|
| Back to top |
|
 |
neowrs Newbie cheater
Reputation: 0
Joined: 07 Oct 2015 Posts: 15
|
Posted: Sun Dec 13, 2015 1:41 pm Post subject: |
|
|
| Zanzer wrote: | Use WriteProcessMemory to write the bytes which make up that instruction.
Since your new instruction takes up more space than the original, you'll need to find something else to get rid of.
If you're lucky, you'll no longer require EAX anywhere.
So if the previous instruction sets EAX, you can overwrite it as well.
Otherwise, you'll need to allocate new memory and write the corresponding bytes responsible for jumping (like CE does).
Use the search at the top of the forums for writing code caves and jump routines. |
thanks
|
|
| Back to top |
|
 |
|