Goal: Find the password and log into level 2. The password is known to be hidden in the - file.
To find the password for level 2 we will list out the files.
We can see the file named - we are after! Hmm, this does not look like a normal file name but lets try to print out the file like we did before.
bandit1@bandit:~$ cat -
Well it seems like we get stuck in the command and it does not list out the file contents. To exit out of the command we can use ctrl + c
.
Since we can not reference the file directly we will need to list out the file path. We could list out the complete file path but we can use either the file prefix ~/
which references the home folder or we can use ./
which references the current folder. To read the file we can use the following command.
Now we have our password for level 2 and we sign into the next level!