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

Level Goal

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:

bandit0@bandit:~$ ls
readme

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
boJ9jbbUNNfktd7800psq0ltutMc3MY1

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 bandit1@bandit.labs.overthewire.org

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’.

bandit0@bandit:~$ logout
Connection to bandit.labs.overthewire.org closed.

root@root:~# ssh -p 220 bandit1@bandit.labs.overthewire.org

I pasted the password from earlier into the prompt and voila, it worked. Now, onto the next level.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: