By: JonawhogoodTags: Rev PicoCTF-2022
Do you seek your destiny in these deplorable dungeons? If so, you may want to look elsewhere. Many have gone before you and honestly, they've cleared out the place of all monsters, ne'erdowells, bandits and every other sort of evil foe. The dungeons themselves have seen better days too. There's a lot of missing floors and key passages blocked off. You'd have to be a real wizard to make any progress in this sorry excuse for a dungeon! Download the game. 'w', 'a', 's', 'd' moves your character and 'Q' quits. You'll need to improvise some wizardly abilities to find the flag in this dungeon crawl. '.' is floor, '#' are walls, '<' are stairs up to previous level, and '>' are stairs down to next level.
Reveal HintsDifferent tools are better at different things. Ghidra is awesome at static analysis, but radare2 is amazing at debugging. With the right focus and preparation, you can teleport to anywhere on the map.
When you open up the binary file using a text editor or strings the file, you will see that the map is stored there. After looking through the binary data through Ghidra, you notice that the map width is 100 characters long. Therefore, you just set your terminal or text editor to 100 characters long, and all of the ascii art is shown. Below is an example: