Leviathan · OverTheWire

Leviathan Level 3 → Level 4

Level 3

Username : leviathan3
Password :Ahdiemoo1j
SSH leviathan.labs.overthewire.org:2223

Solution

To solve this level, we first ssh into the leviathan3 server using the credentials provided above.

Screenshot from 2017-07-18 12-48-49.png

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.

Screenshot from 2017-07-18 14-00-12.png

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.

Screenshot from 2017-07-18 14-16-14.png

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 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s