CrossCTF_2018: Choose Your Own Adventure
Category: Misc Points: 964 Description:
Maybe your question was too long. You reduced the length of your question and asked the oracle again: "Where's the flag?" As expected, she had no reaction again. You sigh... maybe the solution really was in there after all. You close your eyes and started willing yourself back into the enemy's base... Non-standard flag format:
nc ctf.pwn.sg 1400Creator - prokarius (@prokarius)
This challenge was one of the more complex challenges in this CTF. Essentially, it's a maze of 4 levels, 3x4 rooms.
# nc ctf.pwn.sg 1400 After a long time of trying to will yourself, you are finally in the maze. You take a deep breath. The clue to the flag is in here somewhere. Non standard flag format. 00 00 00, Score: 00 The room is just empty space. It is a void. Scribbled into the wall are the numbers 9 and 12. Below in red, the number 0 was written Where would you like to move? 2 -- South 3 -- East 5 -- Up 9 -- Quit 2 00 01 00, Score: 02 A think blanket of fog covers this room. Scribbled into the wall is the number 15. Below in red, the number 4 was written. Where would you like to move? 1 -- North 2 -- South 5 -- Up 9 -- Quit
As a miscellanous challenge, it is more of a guessing game than technical challenge so to guess we go. Well, one of the more important hints given from the start is to take note of everything given. So after scrambling around trying to play detective, suddenly, I had a flash of ingeniuity, could it be, chemistry?
With that in mind, we try to piece things together. First, we mapped out all the rooms,
Now, we proceed to think about how things are. In the earlier example, in room
00 01 00, we get
A thick blanket of fog covers this room., perhaps it's water? H2O? Well, we have a score of
2, could the score refer to the hydrogen and the Y coordinate refer to oxygen? Moving on to other rooms,
01 01 02, Score: 04 You contribute to the puddle of urine in the corner of this room. Scribbled into the wall is the number 17. Below in red, the number 0 was written. Where would you like to move? 6 -- Down 9 -- Quit
In the room
01 01 02 with a score of
04, we get a
puddle of urine. This leads to urea, the chemical in urine with a formula of
CH4N2O. Suddenly things begun to fall in place, with
CH4N2O, we can conclude that the format is as follows,
C O N and the score being
Moving on, we also found that only certain rooms had scribbles, so we decided to ignore those,
With that, we can extract all the chemicals in every room with a scribble and plot them according to the coordinates and score, with
C O N Score: H respectively.
Now that we have sorted all the chemicals into a table by the scribbling number, we can then get the chemical name and using the red number as a character position, we can extract a hidden message.
Putting that together, we get the words
CAPSAICIN IN FORMULA
Looking capsaicin's chemical formula up on Google gives us
Therefore, the flag is