Level2
Website URL: http://overthewire.org/wargames/leviathan/leviathan2.html
Let’s login with leviathan1

Let’s have a look at the contents of the current directory

There is an executable file check
in the directory. Let’s try and execute it.

Something’s fishy. It asked for password, and it is expecting a different one than that of leviathan1. Let’s have a deeper look at the program using ltrace

Well, this practically revealed the password the program is expecting. Let’s enter it.

Now we have a shell for leviathan2. Let’s get the password.
Level completed! Credentials obtained:
Username: leviathan2
Password: **********