Nop hotkey base
Hey guy's got bored i changed a little stuff and made a nop base..
no errors just simple c+p
credits to Alessandro10 for dll load
and me .
and dead wings for addy logger ..
no errors just simple c+p
credits to Alessandro10 for dll load
and me .
and dead wings for addy logger ..
Code:
//includes
#include <windows.h>
//hook
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
//nop
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
void main()
{
while(!IsGameReadyForHook()){
Sleep(200);
}//bool's
bool bullet = false;
bool walls = false;
while(true)
{//hacks
if(GetAsyncKeyState(VK_NUMPAD1)<0)
if(bullet){
memcpy((LPVOID)0x374AC5F6, "\x90\x90\x90", 3);
bullet = false;
}else{
memcpy((LPVOID)0x374AC5F6, "\x0F\x94\xC0", 3);
bullet = true;
}
if(GetAsyncKeyState(VK_NUMPAD2)<0)
if(walls){
memcpy((LPVOID)0x57259A, "\x6A\x00", 3);
walls = false;
}else{
memcpy((LPVOID)0x57259A, "\x6A\x01", 3);
walls = true;
}
}
}
//dll load
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}

Nice .