OverTheWire Bandit Guide

here's how to solve the bandit level 0 → 1

Back to the Bandit Guides

Previous Level Guide: Bandit Level 0


Access

SSH: ssh bandit0@bandit.labs.overthewire.org -p 2220

Password: bandit0

Info

Description: 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: ls, cd, cat, file, du, find

Theory

To get the password, the instructions say that there's a file called readme that has the password. If we look at the Ubuntu manual pages provided in the task, we can see that using ls, we can look at all the files in our current directory, and from there use cat to print the contents of the file and get the password for the next level.

Solution

So using ls, it brings this up:

~$ ls
readme

Now we can see that there's a single file in the directory called readme, just like it says in the task description. So now we just use cat to open the file:

~$ cat readme
Congratulations on your first steps into the bandit game!!
Please make sure you have read the rules at https://overthewire.org/rules/
If you are following a course, workshop, walkthrough or other educational activity,
please inform the instructor about the rules as well and encourage them to
contribute to the OverTheWire community so we can keep these games free!

The password you are looking for is: fzRysGa0Ueo64hZsZRWD5cEyb301wABm

After this, just use the command exit to log out of the ssh connection and continue to the next level.

~$ exit
logout
Connection to bandit.labs.overthewire.org closed.
https://overthewire.org/wargames/bandit/bandit1.html
Next Level Guide: Bandit Level 1 → Level 2