项目作者: hackertron

项目描述 :
A game only for hackers !!
高级语言: C++
项目地址: git://github.com/hackertron/CheatToWin.git
创建时间: 2017-11-05T09:46:01Z
项目社区:https://github.com/hackertron/CheatToWin

开源协议:

下载


CheatToWin WIP ( Work In Progress )

A game only for hackers !!

Try it out now

Download :

cheat

Find your way arount the game logic , hack your way to complete the levels and learn Memory hacking in process.

Level 1 ( Reading / Writing to Memory)

level1

Attack 1

  1. #include<iostream>
  2. #include<Windows.h>
  3. using namespace std;
  4. int main()
  5. {
  6. int newValue = 20;
  7. HWND hwnd = FindWindowA(NULL, "CheatToWin "); // notice the space
  8. if (hwnd == nullptr)
  9. {
  10. cout << "error cannot find window \n";
  11. }
  12. else
  13. {
  14. cout << "found window \n";
  15. DWORD procID;
  16. GetWindowThreadProcessId(hwnd, &procID);
  17. HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);
  18. if (procID == NULL)
  19. {
  20. cout << "cannot obtain proc id \n";
  21. }
  22. else
  23. {
  24. int readtest;
  25. // Find and add your address here
  26. if(ReadProcessMemory(handle, (PBYTE*)0x1CD3CE99884, &readtest, sizeof(int), 0))
  27. {
  28. cout << readtest<<endl;
  29. if (WriteProcessMemory(handle, (LPVOID)0x1CD3CE99884, &newValue, sizeof(newValue), 0))
  30. {
  31. cout << "write successfulle \n";
  32. }
  33. else
  34. {
  35. cout << "Unable to write \n";
  36. }
  37. }
  38. }
  39. }
  40. system("pause");
  41. return 0;
  42. }

Level 2 ( Unknown values )

level2

Level 3 ( MultiLevel Pointer )