Previous Level: Level 3
ssh firstname.lastname@example.org -p 2220
The password for the next level is stored in a hidden file in the inhere directory.
A little bit of Theory
To traverse the directories, the “change directory” command exists:
The path for the command can be an absolute path (path from root directory
/) or a relative path (path from the current working directory).
Interesting uses of the command are:
cd ..goes to the parent directory
cd /goes to the root directory
cd ~goes to the home directory (of the current user)
A hidden file in Linux starts with a
ls command shows only non-hidden files. However, with the
-a flag it shows all files, specifically also the hidden files.
The first two hidden entries in the directories stand for the current (
.) and the parent (
First, we go to the correct folder and then print all its files to find the filename.
Therefore our file with the password is called
.hidden, and we can read its content.
And we got the password for the bandit4 user.
Alternatively, this task could be done without directory traversal by adjusting the path of both the
ls and the
Next Level: Level 5