Post

Verify - PicoCTF

Verify WriteUp

DifficultyEasy
CategoryForensics
EventpicocTF 2024

Hi everyone.

This is my first post in this blog. In this blog we solve the CTF Verify of PicoCTF.

So, by the tags we know that we will use forencis and grep. When we start it will give us a command to connect via SSH.

img-description Verify

The page gives us the following command to connect via SSH ssh -p 61677 ctf-player@rhea.picoctf.net.

Just to remember, the option -p in ssh it serves to specify the port.

After execurting the command type the password provided by the website.

img-description SSH Connection

Once inside the server run ls to list the files in the directory. We see that there is a file called checksum.txt, we open it with cat checksum.txt.

img-description Command ls and cat

It look like a sha256 checksum. Now we entrer in the files directory with cd files, we see that have several files, we need to find the file with the same sha256 that is inside checksum.txt

img-description List of files

To know this we can use the following command:

1
 sha256sum files/*

However this shows us the checksum of all the files, we need to find the one that matches the known checksum.

img-description Checksum

For this we can use grep. So, the command would look like this:

1
 sha256sum files/* | grep checksum

img-description Command grep

Now with the decrypt.sh file, we decrypt and get the flag.

img-description Flag

This post is licensed under CC BY 4.0 by the author.

Trending Tags