image.png

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:

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

image.png

As you can see, this creates a shortcut to the /etc/passwd file.

Zip up the file

zip nogood.zip nogood.mp3

image.png

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

image.png

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.