Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- int main()
- {
- HWND hWnd = FindWindow(0, "AssaultCube");
- if(hWnd == 0){
- printf("Please Lauch Assault Cube\n");
- system("PAUSE");
- }
- DWORD proccess_ID;
- GetWindowThreadProcessId(hWnd, &proccess_ID);
- HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
- int newdata = 100;
- int newdata2 = 5;
- DWORD newdatasize = sizeof(newdata);
- printf("[+] Cheating : =ON=");
- while(1){
- WriteProcessMemory(hProcess, (LPVOID)0x005A8D20, &newdata, newdatasize, NULL);
- WriteProcessMemory(hProcess, (LPVOID)0x005A8D34, &newdata, newdatasize, NULL);
- WriteProcessMemory(hProcess, (LPVOID)0x005A8CDC, &newdata, newdatasize, NULL);
- WriteProcessMemory(hProcess, (LPVOID)0x005A8D30, &newdata2, newdatasize, NULL);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement