Advance glasswall source code (copy&paste)Edition

Posts 76–90 of 97 · Page 6 of 7
Quote Originally Posted by jcgallardo View Post


basta di mo kme babarilin ah hehe
Oo nga, kakatakot mga sig mo eh
tnx po sa cheat^^
Or you could use this sample i quickly made
May has some bugs.


* Currently for International but can easely being changed to Philippines if you adjust the addies

Code:
#include <Windows.h>
#include <fstream>
#include <iostream>

using namespace std;

/* Logs */
#define ErrorLog   "An error has occured.\n"\
	"Please contact us by visiting our website (http://mpgh.net).\n"\
	"By any further problems you can always contact us."

#define SuccesLog  "Succesfully accesed the gameplay.\n"\
	"The game was been reached and the cheat was succesfully activated aswell outgame as ingame.\n"\
	"Hotkey settings: Middle mouse button -> glasswall\n"\
	"//Cheat has been created by AeroMan.\n"\
	"//Website: http://mpgh.net\n"\
	"//Special thanks to: DuoCoder"



/* Engine */
#define ADR_Memory              0x61E68  //401000

/* Adresses */
#define ADR_PlayerCheck         0x9EE740 //Memory Calculated
#define ADR_New_Glasswall       0x9E6C38 //Memory Calculated
#define ADR_Glasswall_Check     0x453B3D //Memory Calculated


/* Bytes */
BYTE CHECK [5] = { 0x68,0xA0,0x8A,0xA4,0x00 };

/* Integers */
int key = 0;
int c_wall = 0;

/* VirtualProtected Memcpy */
void Memcpy(void *adr, void *byte, int size)
{
	DWORD Virtual;
	VirtualProtect(adr,size,PAGE_READWRITE,&Virtual);
	memcpy(adr,(PBYTE)byte,size);
	VirtualProtect(adr,size,Virtual,&Virtual);
}


/* Write to file */
int Write_to_file()
{
	ofstream myfile;
	myfile.open ("Log.txt");

	if( myfile.fail() )
	{
		myfile << ErrorLog;
		goto close;
	}else{
		myfile << SuccesLog;
		goto close;
	}


close:
		myfile.close();

	return 0;
}

/* PlayerCheck */
void PlayerCheck()
{
	if( *(DWORD*)(ADR_Memory+ADR_PlayerCheck) != NULL )
	{
		_asm call Write_to_file

		if( GetAsyncKeyState(VK_MBUTTON) && key == 0 )
		{
			c_wall = 1;
			key = 1;
			Sleep(20);
		}else if( GetAsyncKeyState(VK_MBUTTON) && key == 1 )
		{
			c_wall = 0;
			key = 0;
			Sleep(20);
		}
	}
}

/* WallHack */
void WallHack()
{
	_asm call PlayerCheck

	if( c_wall ==  0 )
	{
		Memcpy((void *)(ADR_Memory+ADR_New_Glasswall),(PBYTE)"\x00\x00\x00\x00",4);
	}else if( c_wall == 1 )
	{
		Memcpy((void *)(ADR_Memory+ADR_New_Glasswall),(PBYTE)"\x00\x00\x00\x01",4);
	}
}


/* Loop the threads */
void loop()
{
for(;;)
{
WallHack();
}
Sleep(160);
}

/* Create a thread using a DllMain */
BOOL __stdcall DllMain(HINSTANCE hDll,DWORD dwReason,LPVOID lpv)
{
	if( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA( NULL, "Succesfully injected!\nHave fun cheating!","mpgh.net", MB_ICONINFORMATION );
		CreateThread(0,0,(LPTHREAD_START_ROUTINE)loop,0,0,0);
	}
	return TRUE;
}
NIce One @AeroMAN Press Thanks TO AEROMAN!

HAhahaha
Nice..
THANKS MAN GOOD JOB
tatawa ako sa mga Comment nyu ahhaahhaahahah!!!
Buwahahahahahah!!!
Quote Originally Posted by hmsger View Post
tatawa ako sa mga Comment nyu ahhaahhaahahah!!!
Buwahahahahahah!!!
Ano nkaka tawa!
patch na mga tangina nyo







^

ano asn na no delay mong kingena ka hahaha pakita mo na
ntatawa sa muka nia siguro
Posts 76–90 of 97 · Page 6 of 7

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us