Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- #include <conio.h>
- int main() {
- int hackedPoints = 999999;
- int time = 20;
- std::cout << "Mario hack by Erzis 1.0v" << std::endl;
- std::cout << "Press something to start the cheat." << std::endl;
- _getch();
- system("cls");
- HWND hwnd = FindWindowA(NULL, "uMario - www.LukaszJakowski.pl");
- if (hwnd == NULL)
- {
- std::cout << "Cannot find window!" << std::endl;
- _getch();
- }
- else
- {
- std::cout << "Starting the cheat..." << std::endl;
- std::cout << "Cheat is running..." << std::endl;
- std::cout << std::endl;
- std::cout << "Points : 999999" << std::endl;
- std::cout << "Time : infinite" << std::endl;
- std::cout << std::endl;
- DWORD ProcID;
- GetWindowThreadProcessId(hwnd, &ProcID);
- HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, false, ProcID);
- if (ProcID == NULL)
- {
- std::cout << "Cannot find process!" << std::endl;
- _getch();
- }
- else
- {
- WriteProcessMemory(handle, (LPVOID)0x03BBE740, &hackedPoints, sizeof(hackedPoints), 0);
- while (1)
- {
- WriteProcessMemory(handle, (LPVOID)0x03BBE6B4, &time, sizeof(time), 0);
- }
- std::cout << "Press something to stop the cheat." << std::endl;
- _getch();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement