Level 4 - OverTheWire Bandit
To know more about OverTheWire, check out my post, Bandit Writeup - OverTheWire. For these walkthroughs, I am using a Linux OS.
Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
Solution
Similar to the previous levels, we are dealing with Linux naming conventions; specifically for hidden files.
Hidden files within Linux are typically named starting with a period (.), so running ls normally will not list them.
From the level description we know the directory where the file is located, so we first move there running the command cd inhere.
Then running the command ls -a or ls -A will list everything in the directory, including anything hidden.
Once we figure out the name of the hidden file and run the command cat ...Hiding-From-You, we will get the password for the next level.
bandit3@bandit:~/inhere$ ls -a
. .. ...Hiding-From-You
bandit3@bandit:~/inhere$ cat ...Hiding-From-You
[password]