The password for the next level is stored in a file called – located in the home directory
ls, cd, cat, file, du, find
Level 2 seems to be the exact same process as level 1 but instead of ‘readme’ it’s ‘-‘. Let’s try viewing everything in the directory with the ‘ls’ command.
bandit1@bandit:~$ ls
-
Yep! The file named ‘-‘ is the only one in the directory. Now I’ll try opening it with ‘cat’.
bandit1@bandit:~$ cat -
It doesn’t work. If I press the Enter key, it will keep line breaking. Ok, Ctrl-C to end that command. Time to investigate how to open a file with a hyphen in the name. Using the recommended reading on the instructions page, I’ve found that typing the file path will help.
bandit1@bandit:~$ cat ./-
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
Tada! Don’t forget to logout!