Post

Overthewire Bandit Level 3 -> 4

Solution for the Overthewire.org Bandit level 3 -> 4

Level Goal

The password for the next level is stored in a hidden file in the inhere directory.


Walkthrough

Login to the server using the password obtained from the previous level Bandit level 2 -> 3.

username: bandit3

1
ssh bandit3@bandit.labs.overthewire.org -p 2220

Change directory into inhere, running ls command will show no files.

1
2
3
4
5
bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ls  

Running ls -a will let us see all files including hidden files.
-a for all files (do not ignore entries starting with .)
We can then see a file named .hidden.
The you can print to screen using cat command.

1
2
3
4
bandit3@bandit:~/inhere$ ls -a
.  ..  .hidden
bandit3@bandit:~/inhere$ cat ./.hidden
pIwrPr##########################
This post is licensed under CC BY 4.0 by the author.