Help For Wall hack please

Posts 1–11 of 11 · Page 1 of 1
Help For Wall hack please
I've done a WallHack but when I try it, it shows me a message inside the box "error do you want to report"
please help me to fix this problem

*That is code*
////////////////////////////////////////////////////////////////////

#include <windows.h>

bool WallHack = false;

DWORD WallArray;

#define ModelNode = 0x17B93D4

void Hacks()
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

//WallHack
if (GetAsyncKeyState(VK_F2) & 1) WallHack = (!WallHack); //F2 Hotkey for WallHack
if(WallHack)
{
memcpy((PVOID)(WallArray + 0xA4), (PBYTE)"\x00\x00\x00\x00\x00\x00\x90\x90\x90\x90\x 90\x90\x90\x90\x90\x90\x90\x90\x90", 19);
}
else
{
memcpy((PVOID)(WallArray + 0xA4), (PBYTE) "\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\ x90\x90\x90\x90\x90\x90\x90", 19);
}

}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "CShell.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL )
return true;

return false;
}

void Engine()
{
while (!IsGameReadyForHook()) {
Sleep(200);
}
while (true)
{
Hacks();
}

}


extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDLL);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
break;
case DLL_PROCESS_DETACH:
break;
}

return true;
}
Quote Originally Posted by ibrahemelglad View Post
I've done a WallHack but when I try it, it shows me a message inside the box "error do you want to report"
please help me to fix this problem

*That is code*
////////////////////////////////////////////////////////////////////

#include <windows.h>

bool WallHack = false;

DWORD WallArray;

#define ModelNode = 0x17B93D4

void Hacks()
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

//WallHack
if (GetAsyncKeyState(VK_F2) & 1) WallHack = (!WallHack); //F2 Hotkey for WallHack
if(WallHack)
{
memcpy((PVOID)(WallArray + 0xA4), (PBYTE)"\x00\x00\x00\x00\x00\x00\x90\x90\x90\x90\x 90\x90\x90\x90\x90\x90\x90\x90\x90", 19);
}
else
{
memcpy((PVOID)(WallArray + 0xA4), (PBYTE) "\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\ x90\x90\x90\x90\x90\x90\x90", 19);
}

}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "CShell.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL )
return true;

return false;
}

void Engine()
{
while (!IsGameReadyForHook()) {
Sleep(200);
}
while (true)
{
Hacks();
}

}


extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hDLL);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
break;
case DLL_PROCESS_DETACH:
break;
}

return true;
}
Do you even know c++? You defined ModelNode for some reason and did NOT set WallArray.
Quote Originally Posted by vaisefud3 View Post
Do you even know c++? You defined ModelNode for some reason and did NOT set WallArray.

Please help me fix the problem because I do not know much about C ++
please fix code
Quote Originally Posted by ibrahemelglad View Post
Please help me fix the problem because I do not know much about C ++
please fix code
Do that yourself. I don't even play the same crossfire version. Get the WallArray address and you are good to go.
You should do like that:

Code:
DWORD FindPattern( DWORD dwStart, DWORD dwLen, BYTE *pszPatt, char pszMask[ ] )
{
	unsigned int i = NULL;
	int iLen = strlen( pszMask ) - 1;

	for( DWORD dwRet = dwStart; dwRet < dwStart + dwLen; dwRet++ )
	{
		if( *( BYTE * ) dwRet == pszPatt[ i ] || pszMask[ i ] == '?' )
		{
			if( pszMask[ i + 1 ] == '\0' )
				return( dwRet - iLen );
			i++;
		}
		else i = NULL;
	}

	return NULL;
}

void findRenderAddress( DWORD *dwBuffer )
{
	*dwBuffer = ( DWORD ) FindPattern( 0x400000,
					INFINITE,
					( PBYTE ) "\xB8\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x8B\x06\x8B\x50\x00",
					( char * ) "x????x????xxxx?" );

	*dwBuffer = *( DWORD * ) ( dwBuffer + 0x01 );
	*dwBuffer += 0xA7;
}

DWORD WINAPI dwStartRoutine( void * )
{
	while( !GetModuleHandle( "ClientFX.fxd" ) )
		Sleep( 1 );

	DWORD dwPlayerRenderState = 0;
	findRenderAddress( &dwPlayerRenderState );

	if( !dwPlayerRenderState )
		return 0;

	*( BYTE * ) ( dwPlayerRenderState ) = 0;

	return 0;
}
or

https://www.mpgh.net/forum/showthread.php?t=1350368
The Error is here man \x00\x00\x00\x00\x00\x00\x90\x90\x90\x90\x 90\x90\x90\x90\x90\x90\x90\x90\x90
you must edit it
ASAN YONG WALLARRAY ADDRESS DYAN REMOVE MODELMODE DEFINE AND DWORD WALLARRAY

Puta DEFINE WALLARRAY..... NO ADDRESS OF WALLARRAY THATS WHY IT GIVES YOU ERROR INGAME AND YOU DEFINE MODEL NODE FOR NO REASON
you just defined ModelNode and you never used it !
then you should add wallarray !
use this
#define WallArray 0x119EF98
People just said what I said with anger.
A possible help
this code is a mix of your code with the code posted by @luizimloko in this topic. I made a few adjusts but not tested 'cause I'm working now, and I used the notepad for write this. maybe need a few fix but can work, maybe not. if not help, I'm sorry. Remember that have a good time since I'm not codding. I recommend the topic: /forum/showthread.php?t=1350368

Code:
#include <windows.h>
#include <stdio.h>

bool WallHack = false; 

#define ModelNode = 0x17B93D4 

DWORD FindPattern( DWORD dwStart, DWORD dwLen, BYTE *pszPatt, char pszMask[ ] )
{
	unsigned int i = NULL;
	int iLen = strlen( pszMask ) - 1;

	for( DWORD dwRet = dwStart; dwRet < dwStart + dwLen; dwRet++ )
	{
		if( *( BYTE * ) dwRet == pszPatt[ i ] || pszMask[ i ] == '?' )
		{
			if( pszMask[ i + 1 ] == '\0' )
				return( dwRet - iLen );
			i++;
		}
		else i = NULL;
	}

	return NULL;
}

void findRenderAddress( DWORD *dwBuffer )
{
	*dwBuffer = ( DWORD ) FindPattern( 0x400000,INFINITE,( PBYTE ) "\xB8\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x8B\x06\x8B\x50\x00",	( char * ) "x????x????xxxx?" );
	*dwBuffer = *( DWORD * ) ( dwBuffer + 0x01 );
	*dwBuffer += 0xA7;
}

DWORD WINAPI dwStartRoutine( void * )
{
	while( !GetModuleHandle( "ClientFX.fxd" ) )
		Sleep( 1 );

	DWORD dwPlayerRenderState = 0;
	findRenderAddress( &dwPlayerRenderState );

	if( !dwPlayerRenderState )
		return 0;

	// WallHack 
	if (GetAsyncKeyState (VK_F2) & 1)
		WallHack = (!WallHack); // Tecla de atalho F2 para WallHack 
	if(WallHack)
	{
		*( BYTE * ) ( dwPlayerRenderState ) = 0;
	}
	return 0;
}

bool IsGameReadyForHook() 
{ 
	if (GetModuleHandleA ("CShell.dll")!= NULL && GetModuleHandleA ("ClientFX.fxd")!= NULL) 
		return true;

	return false; 
} 

void Engine () 
{ 
	while (! IsGameReadyForHook ())
	{ 
		sleep (200); 
	} 
	while (true) 
	{ 
		dwStartRoutine(); 
	} 
} 


extern "C" __declspec (dllexport) DllMain BOOL WINAPI (HMODULE hDLL, DWORD dwReason, lpvRe LPVOID) 
{ 
	switch (dwReason) 
	{
		case DLL_PROCESS_ATTACH: 
			DisableThreadLibraryCalls (hDLL); 
		CreateThread (0, 0, (LPTHREAD_START_ROUTINE) Engine, 0, 0, 0); 
			break;
		case DLL_PROCESS_DETACH: 
			break; 
	} 
return true; 
}
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us