Thursday, July 16, 2015

OverTheWire - Leviathan - Level 6

After logging into leviathan6 and checking the home directory we will see a program called leviathan6. If we run leviathan6 it requests a four digit pin. We will have to write a script to brute-force the correct pin for us.
for pin in {0000..9999}; do printf '%4d ' $pin && ./leviathan6 $pin; done
Once it finds the correct pin it will drop us in a shell. You can run the whoami command to figure out which user you are, although it should be no surprise that it is Leviathan7. Use the following command to get the password to log in to leviathan7 directly.
cat /etc/leviathan_pass/leviathan7

No comments:

Post a Comment