Skip to content
Default image

OVERTHEWIRE – BANDIT LEVEL 3 -> LEVEL 4

ssh bandit3@localhost
pass: UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

The goal for bandit3 is to find the password that is stored in a hidden file in the “inhere” directory.

First thing we need to do is to check the contents of the current working directory. We do this by using the ls command.

Now that we found the inhere directory let’s navigate into the directory

We know that the password is stored in a hidden file, using the ls command alone will not be of any help.

We need to use the ls with -a switch, this will show all the files located in the folder.

All is left to do is run the cat command