OverTheWire: Bandit Level 1 to Level 2


The password for the next level is stored in a file called located in the home directory

As the hint has suggested, you need to check the content in the file named – (a dash symbol) to obtain the password to access level 2.

However, if you just simply run the cat command to view print the content in the file named – (a dash symbol), your terminal is just going to get stuck,


When cat sees – (a dash symbol) as a filename, it treats it as a synonym for stdin. To avoid getting treated as a stdin and have your terminal getting nowhere, you need to provide the full path of the file instead of simply cat the file name.

bandit1@melinda:~$ cat ./-

The password to gain access to level 2 is CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

One Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.