
The game CTF
Tryhackme room
6/10/20251 min read

Step one grab the tools needed
Get Godot Engine
https://godotengine.org/download/windows/
GDRE Decompiler
https://github.com/GDRETools/gdsdecomp/releases/tag/v1.00-beta.3
Step two is we start to access the file
The game file is packed the game so we are unboxing it with the GDRE tool to decomplie it
Step three will be inspecting the code
Once we launch godot and open the file we will select the gui.pd



Find the following function
func onBoard_update_score(score, lines):
$ContainerScore / ScoreBackground / ScoreValue.text = str(score)
$ContainerLines / LinesBackground / LinesCount.text = str(lines)
if score >= 999999:
$ButtonContainer / T.show()
We want to change the if score >= 99999 to 0 this will cause the condition to trigger no matter the score when playing allowing us to see the flag.
The flag for this room is:
THM{I_CAN_READ_IT_ALL}