Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- #include <string>
- using namespace std;
- DWORD pid;
- int Health = 0x11AA378;
- int MyHealth;
- int Ammo = 0x011AA3D0;
- int MyAmmo;
- int NewAmmo;
- int newHealth;
- int speed = 0x510CDC;;
- int myspeed;
- int newspeed;
- int godmode = 999999;
- int crosshair = 0x50F20C;
- int mycrosshair;
- int newcrosshair;
- int main()
- {
- HWND hWnd = FindWindowA(0, ("AssaultCube"));
- GetWindowThreadProcessId(hWnd, &pid);
- cout << "Process ID: " << pid << endl;
- HANDLE pHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
- ReadProcessMemory(pHandle, (LPVOID)Ammo, &MyAmmo, sizeof(MyAmmo), 0);
- cout << "Your Ammo: " << MyAmmo << endl;
- ReadProcessMemory(pHandle, (LPVOID)Health, &MyHealth, sizeof(MyAmmo), 0);
- cout << "Your Health: " << MyHealth << endl;
- ReadProcessMemory(pHandle, (LPVOID)speed, &myspeed, sizeof(myspeed), 0);
- cout << "Game Speed: " << myspeed << endl;
- ReadProcessMemory(pHandle, (LPVOID)crosshair, &myspeed, sizeof(myspeed), 0);
- cout << "Your Crosshair: " << mycrosshair << endl;
- cout << "Ammo Hack F1" << endl;
- cout << "Health Hack F2" << endl;
- cout << "Set Game Speed F3" << endl;
- cout << "GodMode F4" << endl;
- cout << "SetCrosshair F5" << endl;
- while (true)
- {
- if (GetKeyState(VK_F1))
- {
- cout << "How Much Ammo Do You want: ";
- cin >> NewAmmo;
- Sleep(100);
- WriteProcessMemory(pHandle, (LPVOID)Ammo, &NewAmmo, sizeof(NewAmmo), 0);
- cout << "Ammo Set To " << NewAmmo << endl;
- }
- if (GetKeyState(VK_F2))
- {
- cout << "How Much Health Do You want: ";
- cin >> newHealth;
- Sleep(100);
- WriteProcessMemory(pHandle, (LPVOID)Health, &newHealth, sizeof(newHealth), 0);
- cout << "Health Set To " << newHealth << endl;
- }
- if (GetKeyState(VK_F3))
- {
- cout << "Enter Game Speed: ";
- cin >> newspeed;
- WriteProcessMemory(pHandle, (LPVOID)speed, &newspeed, sizeof(newspeed), 0);
- cout << "Speed Set To: " << newspeed << endl;
- }
- if (GetKeyState(VK_F4))
- {
- WriteProcessMemory(pHandle, (LPVOID)Health, &godmode, sizeof(godmode), 0);
- }
- if (GetKeyState(VK_F5))
- {
- cout << "Enter Crosshair Size: ";
- cin >> mycrosshair;
- WriteProcessMemory(pHandle, (LPVOID)crosshair, &newcrosshair, sizeof(newcrosshair), 0);
- cout << "Crosshair Set To: " << mycrosshair << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement