Rescue Mission - H@cktivityCon CTF

Category: Scripting
Solves (at time of writing): 109
Description: Oh no! The flag has been lost in the most disconcerting places! Can you save the flag??

Rescue Mission.

We are given yet another server to connect to via netcat.

Connecting to it we get dropped into a powershell.

Looking at our surroundings we see a single folder stuck_in, in it around 8 folders.

All of the 8 folders are empty, except the the_ocean folder, it contains a flag.png!

To exfiltrate this file I base64 encoded it and decoded it at my machine again.


[Convert]::ToBase64String([IO.File]::ReadAllBytes("/c_drive/stuck_in/the_ocean/flag.png"))
    

Decoding and opening it yields us this:

~sw1tchbl4d3, 03/08/2020 (dd/mm/yyyy)