Alright I’ve made it into Level 0 so now I can start my journey. The instructions for level 1 are here:
Bandit Level 0 → Level 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.
Commands you may need to solve this level
ls, cd, cat, file, du, find
At first glance, I see only two commands that I’ve used before, ‘ls’ and ‘cd’. If I look at the problem it seems to me that I may only need to use the ‘ls’ command. Unless the home directory isn’t the directory that you start in, this one may be just as simple as the first.
Let me try ls first:
A file ‘readme’ shows up as the only file in this directory.
How can I open the file to view it’s contents? This is where the command ‘cat’ comes in. I used the ‘man cat’ command to learn about it but here is additional documentation.
bandit0@bandit:~$ cat readme
From there I copied the password from the ‘readme’ file to log into the next level.
The instructions tells me to log in with SSH as I did last time. So I try the same command with a slight change. It now says ‘bandit1’ instead of ‘bandit0’.
bandit0@bandit:~$ ssh -p 220 email@example.com
But there’s something wrong… Nothing is happening. Eventually it will time out but there’s no reason to wait. I just hit Ctrl-C and I got my terminal back.
After searching for a while I found out that you need to logout of the level you are currently in first before logging in again. The command is simple enough: ‘logout’.
Connection to bandit.labs.overthewire.org closed.
root@root:~# ssh -p 220 firstname.lastname@example.org
I pasted the password from earlier into the prompt and voila, it worked. Now, onto the next level.