OVERTHEWIRE – BANDIT LEVEL 1 -> LEVEL 2
April 22, 2022
We have the password, let’s move forward with the game.
There are 2 options, you can open a new terminal and re-do the steps from bandit0:
ssh bandit1@bandit.labs.overthewire.org -p 2220
pass: boJ9jbbUNNfktd78OOpsqOltutMc3MY1
As we are already connected to the server we can ssh from bandit0 to bandit1 with the following command:
ssh bandit1@localhost
We need to find the password that is stored in a file called “-” (dashed filename) located in the home directory
The command cat – will not work as cat would consider “-” as STDIN/STDOUT. To open this type of files we need to specify the full location of the file.
There are a couple of ways to do this:
cd ./-
cd /home/bandit1/-
cd < -

