Code:
#include <Windows.h>
#include <stdio.h>
#include <process.h>
#define NoRecoil 0x???????
int Hack;
bool InGameLoad()
{
return(
GetModuleHandleA("Game.exe") &&
GetModuleHandleA("CryOnline.dll") &&
GetModuleHandleA("ocevogyv.dll") ?
0:1);
}
void Haks(LPVOID)
{
if(GetAsyncKeyState(VK_INSERT)&1)//Tecla que liga e desliga o hack
Hack = !Hack;
if(Hack)
{
memcpy((void*)(NoRecoil),"\x68\xC0\x7B\x55\x00",5);//NoRecoil Ligado
}
else
{
memcpy((void*)(NoRecoil),"\x68\xC0\x7B\x55\x01",5);//NoRecoil desligado
}
}
unsigned int __stdcall Hook(LPVOID)
{
while(1)
{
while(!InGameLoad())
Sleep(100);
__asm CALL [Haks];
}
return 0;
}
bool __stdcall DllMain( HINSTANCE hDll, long dwReason, void* lpReserved )
{
if( dwReason == DLL_PROCESS_ATTACH)
{
_beginthreadex(0, 0, Hook, 0, 0, 0);
system("start https://www.mpgh.net/forum/");
}
return 1;
}