Post

Overthewire Bandit Level 1 -> 2

Solution for the Overthewire.org Bandit level 1 -> 2

Level Goal

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

Walkthrough

Login to the server using the password obtained from the previous level Bandit level 0 -> 1.

username: bandit1

1
ssh bandit1@bandit.labs.overthewire.org -p 2220

Running ls command we can see a single file with the name -.

1
2
bandit1@bandit:~$ ls 
-

Running cat - does not print the contents of the file - as the cat command thinks you are setting an option like -n for line numbers.
We need to give the path to the file for the cat command to print the contents.

1
2
bandit1@bandit:~$ cat ./-  
CV1Dtq##########################
This post is licensed under CC BY 4.0 by the author.