Challenge Description
This challenge requires us to first connect to their SSH server as picoplayer
on port 59574. We can do this by running ssh -p 59574 picoplayer@saturn.picoctf.net
. The -p
argument is used to specify the port.
After successfully connecting to the server, I ran ls
to check the files and directories within the home directory (~
).
As expected, there’s a file named useless
within this directory. In fact, it was the only file in this directory. Running file useless
shows that it is a Borne-Again shell (bash) script.
I proceeded to read the script:
At the first glance, it seemed like the script did not contain any clue for us to proceed, However, upon closer inspection, we see that there’s a part that requires our attention:
Manual pages in Linux
In order to read manual pages of commands in Linux, we can run the
man
command. This is the basic syntax of it:t provides detailed documentation about the usage, options, and functionality of commands, making it an essential tool for both beginners and experienced users (GeeksforGeeks, 2024).
”Useless” manual page?
The following output is displayed when I ran man useless
:
There it is! The flag is included in the output.
Flag
picoCTF{us3l3ss_ch4ll3ng3_3xpl0it3d_8504}
References
- GeeksforGeeks. (2024d, June 10). How to Read Manual Pages in Linux | man Command. GeeksforGeeks. https://www.geeksforgeeks.org/man-command-in-linux-with-examples/