Advertisement
erzis

Untitled

Dec 6th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <conio.h>
  4.  
  5. int main() {
  6.  
  7. int hackedPoints = 999999;
  8. int time = 20;
  9.  
  10. std::cout << "Mario hack by Erzis 1.0v" << std::endl;
  11. std::cout << "Press something to start the cheat." << std::endl;
  12. _getch();
  13. system("cls");
  14.  
  15. HWND hwnd = FindWindowA(NULL, "uMario - www.LukaszJakowski.pl");
  16. if (hwnd == NULL)
  17. {
  18. std::cout << "Cannot find window!" << std::endl;
  19. _getch();
  20. }
  21. else
  22. {
  23. std::cout << "Starting the cheat..." << std::endl;
  24. std::cout << "Cheat is running..." << std::endl;
  25. std::cout << std::endl;
  26. std::cout << "Points : 999999" << std::endl;
  27. std::cout << "Time : infinite" << std::endl;
  28. std::cout << std::endl;
  29. DWORD ProcID;
  30. GetWindowThreadProcessId(hwnd, &ProcID);
  31. HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, false, ProcID);
  32.  
  33. if (ProcID == NULL)
  34. {
  35. std::cout << "Cannot find process!" << std::endl;
  36. _getch();
  37. }
  38. else
  39. {
  40. WriteProcessMemory(handle, (LPVOID)0x03BBE740, &hackedPoints, sizeof(hackedPoints), 0);
  41. while (1)
  42. {
  43. WriteProcessMemory(handle, (LPVOID)0x03BBE6B4, &time, sizeof(time), 0);
  44. }
  45. std::cout << "Press something to stop the cheat." << std::endl;
  46. _getch();
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement