Advertisement
sakiir

Assault Cube Cheat

Oct 14th, 2013
125
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.  
  3. int main()
  4. {
  5.     HWND hWnd = FindWindow(0, "AssaultCube");
  6.  if(hWnd == 0){
  7.             printf("Please Lauch Assault Cube\n");
  8.             system("PAUSE");
  9.             }
  10.  
  11.             DWORD proccess_ID;
  12.             GetWindowThreadProcessId(hWnd, &proccess_ID);
  13.             HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
  14.  
  15.                 int newdata = 100;
  16.                 int newdata2 = 5;
  17.                 DWORD newdatasize = sizeof(newdata);
  18.                 printf("[+] Cheating : =ON=");
  19.                 while(1){
  20.                 WriteProcessMemory(hProcess, (LPVOID)0x005A8D20, &newdata, newdatasize, NULL);
  21.                 WriteProcessMemory(hProcess, (LPVOID)0x005A8D34, &newdata, newdatasize, NULL);
  22.                 WriteProcessMemory(hProcess, (LPVOID)0x005A8CDC, &newdata, newdatasize, NULL);
  23.                 WriteProcessMemory(hProcess, (LPVOID)0x005A8D30, &newdata2, newdatasize, NULL);
  24.              }
  25.                
  26.                
  27.                
  28.  
  29.  
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement