TryHackMe - The Game
Description of TryHackMe The Game (Premium room)
Practice your Game Hacking skills. Difficulty: easy Estimated time: 10 min
Initial Analysis
After extracting the provided files, I located the game executable and launched it. The game presents itself as a classic Tetris clone, with standard controls and scoring mechanics.
Reaching a score of 999,999 through normal gameplay would be extremely time-consuming. Instead, I decided to use Cheat Engine to manipulate the game’s memory and set the score directly.
Attaching Cheat Engine
I opened Cheat Engine and attached it to the running Tetrix process. This allows us to scan and modify the values stored in the game’s memory in real time.
Locating the Score in Memory
To find the memory address holding the score, I first increased my score in the game to 100. I then performed an initial scan in Cheat Engine for the value 100.
Next, I increased my score again to 200 and performed a ‘Next Scan’ for the new value. This narrowed down the results to a single address, which likely represented the score variable.
Modifying the Score
With the correct address identified, I changed the value at that address to 1,000,000.
Returning to the game, I performed one more scoring action to trigger the UI update. Instantly, the score reflected the new value, and the flag was displayed on the screen.