This is the second in a series that will show how I solve the overthewire.org Bandit puzzles as I am completing them.
Level Goal
The password for the next level is stored in a file called - located in the home directory
Walkthrough
This level similar to the first one is to just read the contents of a file to get the password. Login using the password obtained from the first level.
~$ ssh bandit1@bandit.labs.overthewire.org -p 2220
bandit0@bandit.labs.overthewire.org's password:
Once logged in I found a file named - . Running the command 'cat -' does not work as the cat command thinks your entering an option rather then the file name being '-'.
To read the file '-' I entered the the path to the file.
bandit1@bandit:~$ ls
-
bandit0@bandit:~$ cat ./-
The output from the cat ./- command is the password for the next level.
That's the second level completed.
Top comments (0)