
Note: The webpage features a picture of Link from the Zelda series. This is a symlink challenge.
In this challenge, we know that the flag is in:
/flag/flag.txt
- We can upload a zip file to the server that contains a
.mp3
- The uploaded file will be unzipped on the server side, and we can download the file from the server.
For this challenge, we’ll need to create a file that contains a symlink, which is preserved once uploaded to the target system.
This first demonstration will not work, but if you aren’t familiar with the concept of a symlink, you should work through it to see what they are and how they behave.
Create a file on your Kali machine that is a symlink to /etc/passwd
ln -s /etc/passwd nogood.mp3

As you can see, this creates a shortcut to the /etc/passwd file.
- If you
cat the file you just created, you’ll see the contents of /etc/passwd
- If you delete
myfile.mp3, you will not delete the /etc/passwd file.
Zip up the file
zip nogood.zip nogood.mp3

Upload it to the server, right-click the provided link, and save the file.

cat the file you just downloaded, and you’ll see it contains the contents of the /etc/passwd file that is local to your machine.