PDA

View Full Version : Helpe me with nopping!



Skull
06-08-2008, 10:45 AM
hey i have a problem with NOPPING.
i can put all hacks ON
but i cant put them OFF!.

Please need help

What i did ?

#define Svp_Addie 0x000000 ( Just the real addie in it )

after that Boold it and added this code

void D3D_NOP( void* pxAddress, int size )
{
unsigned long Protection;
BYTE IWriteNoFunctions[ ] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
memcpy((void*)pxAddress, (const void*)IWriteNoFunctions, size);
VirtualProtect((void*)pxAddress, size, Protection, 0);
}

Added all shit that the menu is working...

then i did this :

if( sniper )
{
D3D_NOP( ( void* )svp_Addie, 4);
}

But How do i put them off?

ZeaS
06-08-2008, 10:47 AM
get the real bytes and do it this way(example)

BYTE svpoff[] = {/*real off bytes*/};
WriteProcessMemory(hProcess, (LPVOID*)addy, &svpoff, siezof(svpoff);

Skull
06-08-2008, 10:57 AM
i just add that at the top ( well almost below the #define svp_Addie 0x00000?

btw svp is not realy a private addie but its like this :

BYTE svpoff[4] = {0x90,0x90,0x90,0x90};
WriteProcessMemory(hProcess, (LPVOID*)heremyaddie, &svpoff, siezof(svpoff);

what to do with the siezeof??

ZeaS
06-08-2008, 11:03 AM
i just add that at the top ( well almost below the #define svp_Addie 0x00000?

btw svp is not realy a private addie but its like this :

BYTE svpoff[4] = {0x90,0x90,0x90,0x90};
WriteProcessMemory(hProcess, (LPVOID*)heremyaddie, &svpoff, siezof(svpoff);

what to do with the siezeof??

i know sizeoff is how much byte you use, you also could write in "4" and svpoff is not 0x90....

Skull
06-08-2008, 11:05 AM
svp = 0x8B,0x54,0x24,0x04 ( off code)
svp = 0x90,0x90,0x90,0x90 ( on code)

i just need to write it therE?

so it will like :
BYTE svpoff[4] = {0x90,0x90,0x90,0x90};
WriteProcessMemory(hProcess, (LPVOID*)addy, &svpoff, siezof(0x8B,0x54,0x24,0x04);

ZeaS
06-08-2008, 11:08 AM
svp = 0x8B,0x54,0x24,0x04 ( off code)
svp = 0x90,0x90,0x90,0x90 ( on code)

i just need to write it therE?

so it will like :
BYTE svpoff[4] = {0x90,0x90,0x90,0x90};
WriteProcessMemory(hProcess, (LPVOID*)addy, &svpoff, siezof(0x8B,0x54,0x24,0x04);


BYTE SVPOFFFFFFFFFFFFFFFFFFFFFFFF[4] = [0x8B,0x54,0x24,0x04};
WriteProcessMemory(hProcess, (LPVOID*)SVPADDY, &SVPOFFFFFFFFFFFFFFFFFFFFFFFF, sizeof(SVPOFFFFFFFFFFFFFFFFFFFFFFFF);

Skull
06-08-2008, 11:14 AM
if i change the svpoff to svpon and the offsets to 0x90 ( 4x ).
it will be on?

im sorry just started lol.
i know how to do memory but not nop very well.

ZeaS
06-08-2008, 11:20 AM
if i change the svpoff to svpon and the offsets to 0x90 ( 4x ).
it will be on?

im sorry just started lol.
i know how to do memory but not nop very well.

yes

BYTE On[] = {0x90....};
BYTE Off[] = {0x8b....};

you write the bytes you need in their.. and then call do it with WriteProcessMemory

Skull
06-08-2008, 11:36 AM
WORKS . Thank You ZEAS!!