Level 3 Username : leviathan3 Password :Ahdiemoo1j SSH leviathan.labs.overthewire.org:2223
To solve this level, we first ssh into the leviathan3 server using the credentials provided above.
As we can see, there’s an executable named ” level3 ” which checks for a password. If we enter the correct password, the executable would hopefully allow us to access the password file for the next level.
Let’s run an ltrace on this executable to understand the executable better.
As we can see, the executable seems to be comparing our string with “snlprintf”. Let’s see what happens, when we provide the same string.
As we can see above, the executable logs us in as “leviathan4” user and we can print the contents of the password file.
Level 4 Username : leviathan4 Password : vuH0coox6m SSH : leviathan.labs.overthewire.org:2223