Level 0 #
The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.
Solution #
$ssh bandit0@bandit.labs.overthewire.org -p 2220
Level 0 to 1 #
The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.
Solution #
$cat readme
NH2SXQwcBBdpmTEzi3bvBHMM9H66vVXjL
Level 1 to 2 #
The password for the next level is stored in a file called - located in the home directory
Troubleshooting #
At first I tried to cat the file, but nothing happened. I then googled “How to read dashed filenames” and got the solution from Prithvi Raj on Stackoverflow. You must specify the full location of the file.
Solution #
$cat ./-
rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi
Level 2 to 3 #
The password for the next level is stored in a file called spaces in this filename located in the home directory
Troubleshooting #
Cat the file and hit tab to auto complete the name of the file, it will automatically escape the spaces with a backslash. You can also wrap the file in double quotes. I googled too see why spaces should be avoided and its because when you use a command including spaces, it will treat it as separate arguments.
Solution #
$cat spaces\ in\ this\ filename
$cat "spaces in this filename"
aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG