BlueHens

Cut the flag [473 pts]

Writeup author: lolmenow

Provided files: https://spacegames3.itch.io/cut-the-flag

473 pwd: bluehens -Inferno

We are given a unity game and the objective is two cut the rope that has the flag 20 times. The catch is that the “cutter” increases in speed each time, which would be really hard to get all 20 times.

Knowing that this is a unity game, we know that it can be decompiled as unity games are compiled with .NET

Use dnspy to decompile the game using the Assembly-CSharp dll.

Going through, we see a function that handles the amount of times you must play the game to win.

image The underlined part is a conditional that checks if the game played is greater than or equal to a certain amount. I modified it to 1, compiled the game, and played one game to instantly go to the win screen.

Now, I am not sure if I just got really lucky, but the first time I played the game it said something about “machines being corrupted”. However, next time through, I got the success screen!

Final flag: UDCTF{a_d1fF3R3nT_p3rsp3ct1v3}