Goal
The password for the next level is stored in a hidden file in the inhere directory.
Key concept
Hidden files on Linux typically start with a dot, like:
.hidden.password
By default, ls won’t show them.
Steps
- SSH in:
ssh bandit3@bandit.labs.overthewire.org -p 2220
- Go into the directory:
cd inhere
- List including hidden:
ls -la
- Identify the file that looks like the password file, then read it:
cat .hidden
That output is the password for Level 4.
Notes
-lgives details;-aincludes dotfiles.- If the hidden filename is different, use whatever you see in
ls -la.