Advertisement
Guest User

main

a guest
Nov 16th, 2013
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.h>
  4. #include <iostream>
  5. #include "HackProcess.h"
  6.  
  7. #define SPACE_BAR 0x20
  8. #define F6_Key 0x75
  9. CHackProcess fProcess;
  10. using namespace std;
  11. const DWORD r_drawothermodels = 0x53C270;
  12. bool WHStatus = false;
  13. int wh_int = 2;
  14. void Wallhack();
  15.  
  16. int main()
  17. {
  18.     fProcess.RunProcess();
  19.     cout << "Found game! Starting hack..." << endl;
  20.     while(!GetAsyncKeyState(F6_Key))
  21.     {
  22.         Wallhack();
  23.     }
  24.     return 0;
  25. }
  26.  
  27. void Wallhack()
  28. {
  29.     if(GetAsyncKeyState(SPACE_BAR))
  30.     {
  31.         WHStatus = !WHStatus;
  32.         Sleep(250);
  33.     }
  34.     if(!WHStatus)
  35.         return;
  36.     WriteProcessMemory(fProcess.__HandleProcess,(PBYTE*)(fProcess.__dwordClient + r_drawothermodels), &wh_int,sizeof(INT),NULL);
  37.     if (wh_int == 1) wh_int = 2;
  38.     if (wh_int == 2) wh_int = 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement