Use WriteProcessMemory() with the address you want and 90 for each byte you want to nop.
Hi all,
I would know how i can nop a address ?
Via Visual C++ 6
Thank from advance
Use WriteProcessMemory() with the address you want and 90 for each byte you want to nop.
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
can you give an example of this code pls ?
Pretty simple.
That would nop the code at 0xADDRESS (obviously not a real address, replace with the address of the code you want to nop).Code:WriteProcessMemory(hProcess, 0xADDRESS, 0x90, 1, NULL);
hProcess is a handle (HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE,PROCESS_ID)) to the process of the game.
0x90 is the hex code for the nop instruction.
1 is the length of the code to write (nop = 1 byte).
NULL is given because we don't care how much code is written, supply this with a pointer to a DWORD if you want to know how many bytes were actually written (error checking, etc).
If you still don't understand, I think you should get a firmer grasp of the Win32 API.
oilu (06-04-2008)
Note that most funtions are not 1 byte most of the time so you may need to do this byte nop[]={0x90, 0x90, 0x90, 0x90}; this will nop 4 bits...
This works to ...
i think
Code:unsigned long ulStamina = 1120403456; memcpy_ex( ( void* )0x7F1110, &ulStamina, sizeof( unsigned long ) );