OverTheWire Bandit Guide

here's how to solve the bandit level 3 → 4

Back to the Bandit Guides

Previous Level Guide: Bandit Level 2 → 3


Access

SSH: ssh bandit3@bandit.labs.overthewire.org -p 2220

Password: AOOmfkeQNfPIUaKmy2dCg9LrRfh1dK7Ud

Info

Description: The password for the next level is stored in a hidden file in the inhere directory.
Commands: ls, cd, cat, file, du, find

Theory

To get the password, the instructions say that the file is both hidden and inside the folder inhere. So I'd guess that first we use cd (which is used to change the current directory) to get into the inhere folder and ls -a to list all the files regardless of whether they're hidden or not.

Solution

Now we just look for the folder:

~$ ls
inhere

And we enter in the folder:

~$ cd inhere

~/inhere$ ls

~/inhere$ ls -a
.  ..  ...Hiding-From-You

Now we just open the file "...Hiding-From-You", and use exit to logout and go to the next level using the password we got.

~/inhere$ cat ...Hiding-From-You
6AaC5CLQkKW4jfEizmu7h1Bq7narlA6A
https://overthewire.org/wargames/bandit/bandit4.html
Next Level Guide: Bandit Level 4 → Level 5