Over The Wire - Bandit - Level 04#
Level Goal#
The password for the next level is stored in a hidden file in the
inheredirectory.
Commands you may need to solve this level#
ls , cd , cat , file , du , find
Steps#
This challenge teaches us about hidden files and directories. In Linux, hidden
files is marked with a dot (.) before the file name. This makes it marked as
hidden and will not show in a common ls command.
So if we use ls in the home directory, we can find the directory inhere. Then
we enter the ìnhere directory using the cd command:
cd inhereNow, inside inhere directory, if the list the files with ls, no file can be
found. To show hidden files inside a directory we will use the option -a to
show all files, including hidden files. It will be something like:
ls -aWith that, the file ...Hiding-From-You is revealed, reading the file with cat:
cat < ...Hiding-From-YouReveals the password for the next level.