Trapped Source
- Platform: Hack The Box
- Event: Cyber Apocalypse 2023
Challenge Setting
Here is the setting to the challenge:
Intergalactic Ministry of Spies tested Pandora's movement and intelligence abilities. She found herself locked in a room with no apparent means of escape. Her task was to unlock the door and make her way out. Can you help her in opening the door?
Walkthrough
You are presented with a numerical keypad type lock with the message "locked".
As always, first take a look at the source code.
In this case, the javascript code in the script tag clearly shows the pin code.
Type the pin code in and the flag appears.
Couldn't highlight the text from the UI, so I just went back into the newly served up code and took the flag from there.