Bandit Level 3 → Level 4

If we list the content of the home directory:
ls

It is a directory due to its color (In Kali Linux directory color is blue by default), we can change our directory with the cd
(Change Directory) command:
cd <Directory>

We are in that directory, but if we list the content of that directory:
ls

We will see there is nothing, but in Linux generally, if we created a file with a (.) at the beginning of that file, it will be hidden by default.
We can show the ls
command help menu with --help
option, or using the man ls
to view the manual page of the ls
command:
ls --help


So we can use the -a
option with the ls
command to show files that starts with ., but also we will use the -l
option to list it in more readable format:
ls -la

We found that file, lets read it:
cat <filename>

This is the password for the bandit4 user.
Last updated