[TUTORIAL] Another NOP way (NEW)

Posts 1–10 of 10 · Page 1 of 1
[TUTORIAL] Another NOP way (NEW)
Ok in this cutted source you will easily get the point how to use this way to NOP! If you dont get it ... pls dont post it and leave this thread!

Globals:
Code:
#define GLASSWALLS 0x57218A
#define PUSH 0x6A
#define NOP 0x90 //Only if you NOP something
#define GWLength 2 //The Bytelength of Glasswalls
BYTE gw_ON[WHLength] = {PUSH, 0x00}; //GW On
BYTE gw_OFF[WHLength] = {PUSH, 0x01}; //GW Off

void memoryediting(int address, BYTE *data, int length){
     int protection;
     VirtualProtect((void *)address, length, PAGE_READWRITE, (PDWORD)&protection);
     memcpy((void *)address, (const void *)data, length);
     VirtualProtect((void *)address, length, protection, 0);
}
Using it in a Hotkeyhack
Code:
if(GetAsyncKeyState(VK_F12)<0){
	if(gw){
		Sleep(200);
		memoryediting(GLASSWALLS, gw_OFF, GWLength);
		gw = false;
	}else{
		Sleep(200);
		memoryediting(GLASSWALLS, gw_ON, GWLength);
		gw = true;
	}
}
Have fun =)
Very nice dude

I think this is (when defined the adresses) very easy to write/read N-I-C-E
Quote Originally Posted by doofbla View Post
Very nice dude

I think this is (when defined the adresses) very easy to write/read N-I-C-E
ye you are able to change the bytes and addies very fast =)
Looks good.
Looks Good...

/Thanked
Looks nais man.
Got my thanks
Its still the same func... you just used vars instead of using the text itself...
Quote Originally Posted by Mr.Magicman View Post
Its still the same func... you just used vars instead of using the text itself...
ye i know, but with this, you are able to change the bytes/addies faster =)
love you solify(no homo) thanks
Really don't see the point of this... but whatever the code looks nice and if it works, it's eye candy at the least
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us