Do you know how to move between directories and read files in the shell? Start the container, ssh
to it, and then ls
once connected to begin. Login via ssh
as ctf-player
with the password, 6****
- It was so easy. I opened the webshell in picoCTF web and ssh into the server.
- There was 2 text files when I
ls
in the folder. One file contains the first part of the flag and other one says what to do next.cat 1of3.txt cat instructions-to-2of3.txt
- Then I changed the directory to root as instructed in previous txt file.
cd / ls cat 2of3.txt cat instructions-to-3of3.txt
- Then I went to home directory as instructed in previous file.
cd ~ ls cat 3of3.txt
- Thus I got all the parts of the flag and done. Then just pressed
Ctrl + D
to logout.