Choose Your Own Adventure - CrossCTF Quals 2018 (misc)
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:
We are given the hints in this format:
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
1-6 are used to navigate the location to collect all the hints.
And we are also given 4 hints to solve the challenge:
Hint 1 for CYOA: len(flag) = 9 Think outside the box for this challenge. It's less of a ctf challenge and more of a misc puzzle tbh...
Think about how the contents of each room relate to the coordinates and the score.
So now that you can match why each object is in a specific room (with a certain coordinate and score), perhaps think about the scribblings. What's the meaning behind the scribbles?
You are looking for a string of characters that leads to the final flag. Link each object in the rooms to the coordinates and figure out the overarching theme of the puzzle.
And the words reduced, reaction and solution are italicized, suggesting the topic is chemistry.
Interpreting the hints
Consider the hint above, urea is one component of urine, with chemical formula CO(NH2)2 -> C1O2N2H4, which corresponds to the coordinates(01 01 02) and the score(04). With this in mind we check all the other 19 hints and get all the chemicals.
The scribbles in the wall are also unique, ranging from 0 to 19, which suggests the chemicals can be sorted.
To solve the challenge, we take the (Red no.)th element of the chemical's common name and list them out
capsaicin in formula