Mushroom
Description
Mushroom | 125 points | By Tyler Hogan
Wow, a game with a mushroom in it!
Analysis
We are given a game written in Unity called ctfchallenge. When we open the game there's no instructions or help. Character can move using W A S D keys, but using mouse to turn doesnt work. Left Click and Dragging also doesnt work, but crazy stuff happens with Right Click and Drag.
What is the objective? Move around to find the flag? Let's try digging into the source code.
I'm going to use dnSpy to analyze.
The main game code should be stored inside ctfchallenge_Data\Managed\Assembly-CSharp.dll.
At explorer > Assembly-CSharp > Assembly-CSharp.dll > Curly Braces > CameraMovement
Solution
In the snippet below are shown the changes I made to game.
Removed condition to check player location to display flag
Removed combination of keys to change
rotateSpeedAdded
spacebutton event to move verticallyAdded
2button event to increase movement speed

Flag: bcactf{UN1Ty_f14g}
Last updated