Wednesday, July 15, 2015

OverTheWire - Leviathan - Level 5

After logging into leviathan5 and checking the home directory we will see a program called leviathan5. If we run check it informs us that it cannot find the file /tmp/file.log.

If we create it using something like the following command and run ./leviathan5 whatever what in the file.
echo "Hello world" > /tmp/file.log && ./leviathan5
Using what we know, we can create a symbolic link to the password file and use ./leviathan5 to print it out to us. Use the following command to get the password:
ln -s /etc/leviathan_pass/leviathan6 /tmp/file.log && ~/leviathan5

No comments:

Post a Comment