Advertisement
Guest User

mpgh

a guest
Apr 3rd, 2014
1,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <stdio.h>
  3. #include <process.h>
  4.  
  5.  
  6. #define NoRecoil 0x00F9E23E
  7.  
  8. int Hack;
  9.  
  10.  
  11. bool InGameLoad()
  12. {
  13.     return(
  14.         GetModuleHandleA("Game.exe") &&
  15.         GetModuleHandleA("CryOnline.dll") &&
  16.         GetModuleHandleA("ocevogyv.dll") ?
  17.         0:1);
  18. }
  19.  
  20. void Haks(LPVOID)
  21. {
  22.     if(GetAsyncKeyState(VK_INSERT)&1)//Tecla que liga e desliga o hack
  23.         Hack = !Hack;  
  24.  
  25.     if(Hack)
  26.     {
  27.         memcpy((void*)(NoRecoil),"\x68\xC0\x7B\x55\x00",5);//NoRecoil Ligado
  28.     }
  29.     else
  30.     {
  31.         memcpy((void*)(NoRecoil),"\x68\xC0\x7B\x55\x01",5);//NoRecoil desligado
  32.     }  
  33. }
  34.  
  35. unsigned int __stdcall Hook(LPVOID)
  36. {
  37.     while(1)
  38.     {
  39.         while(!InGameLoad())
  40.             Sleep(100);
  41.         __asm   CALL Haks;     
  42.     }
  43.     return 0;
  44. }
  45.  
  46. bool __stdcall DllMain( HINSTANCE hDll, long dwReason, void* lpReserved )
  47. {
  48.     if( dwReason ==  DLL_PROCESS_ATTACH)
  49.     {  
  50.         _beginthreadex(0, 0, Hook, 0, 0, 0);   
  51.          system("start http://www.mpgh.net/forum/");
  52.     }
  53.     return 1;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement