OverTheWire Bandit 0 → Level 1

Welcome to the OverTheWire Bandit series! In this walkthrough, we’ll guide you through solving Level 0 and progressing to Level 1. Let’s dive in! OverTheWire - Bandit
Level Goal
The goal of Bandit Level 0 is to find the password for Level 1, which is stored in a file named readme
located in the home directory.
Commands for This Level
- ls list directory contents
- cd change the working directory
- cat concatenate files and print on the standard output
- file determine file type
- find search for files in a directory hierarchy
Connecting to Bandit0
First, let’s connect to the Bandit Level 0 server using SSH. Open your terminal and run the following command:
ssh bandit0@bandit.labs.overthewire.org -p 2220
You will be prompted to enter the password for Level 0, which is also bandit0
.
Locating the Readme File
Once logged in, you’ll find yourself in the home directory (/home/bandit0
). Let’s list the files in the directory using the ls
command:
ls
You should see readme
.
Reading the readme file
To view the contents of the readme
file, use the cat
command.
cat readme
This will display the password for Level 1 on the terminal.
SSH into Bandit1
Now you have the pw for Level 1, ssh into the next level.
ssh bandit1@bandit.labs.overthewire.org -p 2220
Enter the password you obtained from the readme
file when prompted.
Enjoy Reading This Article?
Here are some more articles you might like to read next: