is game ready for hook method

Posts 1–15 of 40 · Page 1 of 3
is game ready for hook method
Code:
#include <windows.h>

void MEMCPY(void* Dest, const void* Src, int Len) \\ this is if you want to make hacks using addies
{
    DWORD OldProtect = NULL;
    DWORD OldProtect2;
    VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
    memcpy(Dest, Src, Len);
    VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
    FlushInstructionCache(GetCurrentProcess(), Dest, Len);
}


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

void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 ); \\ the LCclient Code you need to change this as it changes or the hacks wont word 
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, -3-1+2+6;
}
}

void main()
{
while(true)
{
if (GetAsyncKeyState(VK_NUMPAD0)) {
	PushToConsole("SkelModelStencil 1");
	Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD1)) { 
	PushToConsole("WeaponSway 0.000000");
	Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD2)) {
	PushToConsole("ShowFps 2222");
	Sleep(100);
		}else{
			PushToConsole("ShowFps 2220");
			Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD3)) {
	PushToConsole("drawguns 0");
	Sleep(100);
}
if(GetAsyncKeyState(VK_NUMPAD4)) {
    PushToConsole("ActivationDistance 0 );
	Sleep(100);
	}
	if(GetAsyncKeyState(VK_NUMPAD5)) {
    PushToConsole("FullBright 11");
	Sleep(100);
	}
	if(GetAsyncKeyState(VK_NUMPAD6)) {
	PushToConsole("PerturbRotationEffect 3.0010000");
	PushToConsole("PerturbIncreaseSpeed 3.000000");
	PushToConsole("FireMovePerturb 9.000000");
	PushToConsole("PerturbWalkPercent 0.500000");
	PushToConsole("PerturbDecreaseSpeed 9.0100000");
	PushToConsole("PerturbRecoil 9.000000"); 
	PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
	PushToConsole("ZoomedFireMovePerturb 9.000000");
PushToConsole("ZoomedFireDuckPerturb 9.0000010");
Sleep(100);
}
	if(GetAsyncKeyState(VK_NUMPAD6)) {
	PushToConsole("FragSelf 11");
	Sleep(100);
}
	if(GetAsyncKeyState(VK_NUMPAD7)) {
	PushToConsole("FogEnable 0");
	Sleep(100);
}
	if(GetAsyncKeyState(VK_NUMPAD8)) {
		PushToConsole("ShowFirePath 11");
		Sleep(100);
}
	if(GetAsyncKeyState(VK_NUMPAD9)) {
		PushToConsole("WireFrame 11");
		Sleep(100);
	if(GetAsyncKeyState(VK_NUMPAD16)) {
	PushToConsole("FragSelf 1");
	Sleep(100);
	}
	if(GetAsyncKeyState(VK_HOME)) {
		PushToConsole("WireFrame 10");
		Sleep(100);
}
  if(GetAsyncKeyState(VK_INSERT)){//No Recoil
                    memcpy((LPVOID) (0x3737EE23), "\x90\x90\x90", 3);
                    memcpy((LPVOID) (0x3745B7D1), "\x90\x90\x90", 3);
                    memcpy((LPVOID) (0x3745B7E0), "\x90\x90\x90", 3);
                    memcpy((LPVOID) (0x3745B7D4), "\x90\x90\x90\x90\x90\x90", 6);
			}
  }
}
}

DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
ok this is the whole thing he gave me
fail. this isnt a hook. this just checks if the dlls listed are loaded.
wait a sec
Your friend isn't too smart... =/
look i posted the whole thing the whole hack code
What are you trying to do?
trying remake his hack and i added errors
Ok I'm really confused. What is the point of this thread?
THAT GOT SO MANNY PROBLEMS.. noob
like i said i added errors i want to know if it would work but i fix the errors i put and i have only 2


Error 1 error LNK2005: _DllMain@12 already defined in Coldfusion.obj
Error 2 error LNK1169: one or more multiply defined symbols found
Quote Originally Posted by hhhjr1 View Post
like i said i added errors i want to know if it would work but i fix the errors i put and i have only 2


Error 1 error LNK2005: _DllMain@12 already defined in Coldfusion.obj
Error 2 error LNK1169: one or more multiply defined symbols found
You've defined things multiple times in your script. Check Coldfusion.cpp for multiple defines.
Quote Originally Posted by hhhjr1 View Post
like i said i added errors i want to know if it would work but i fix the errors i put and i have only 2


Error 1 error LNK2005: _DllMain@12 already defined in Coldfusion.obj
Error 2 error LNK1169: one or more multiply defined symbols found
I DONT MEAN THAT... u got crappy ptc bugs... u got acitivation distance 0

u will not be able to do anything.

EVERYTHING IN UR SIG THAT 100% and PTC>..and are public


PushToConsole("ShowFps 2220");

LOL

PushToConsole("ActivationDistance 0 );

LOL

PushToConsole("FullBright 11");

LOL

PushToConsole("FragSelf 11")

LOL

PushToConsole("ShowFirePath 11");

LOL

PushToConsole("WireFrame 11");

LOL

PushToConsole("WireFrame 10");

LOL SHIT
that what i did i put errors in ptc like pick hack ptc is 99999 and i put it 0 for cham i put 1101 something like that
That will only work if noobs are completely retarded -_- there is a thread with the correct values right above this one lol
i dont defined things multiple times in the hack
Posts 1–15 of 40 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us