top of page

OverTheWire Bandit Level 0-10: Walkthrough



Bandit Level 0

Level Goal

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.


Open terminal and type
Ssh bandit0@ bandit.labs.overthewire.org –p 2220
Password: bandit0


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.


ssh bandit0@bandit.labs.overthewire.org -p 2220
password: bandit0
ls
cat readme
password for next level: boJ9jbbUNNfktd78OOpsqOltutMc3MY1


Bandit Level 1 → Level 2

Level Goal

The password for the next level is stored in a file called - located in the home directory


ssh bandit2@bandit.labs.overthewire.org -p 2220
password: boJ9jbbUNNfktd78OOpsqOltutMc3MY1
ls
cat ./-
password for next level: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9


Bandit Level 2 → Level 3

Level Goal

The password for the next level is stored in a file called spaces in this filename located in the home directory


ssh bandit2@bandit.labs.overthewire.org -p 2220
password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
ls
cat spaces\ in\ this\ filename
password for next level: UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK



Bandit Level 3 → Level 4

Level Goal

The password for the next level is stored in a hidden file in the inhere directory.


ssh bandit3@bandit.labs.overthewire.org -p 2220
password: UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
ls
cd inhere
ls –al
cat .hidden
password for next level: pIwrPrtPN36QITSp3EQaw936yaFoFgAB


Bandit Level 4 → Level 5

Level Goal

The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.


ssh bandit4@bandit.labs.overthewire.org -p 2220
Password: pIwrPrtPN36QITSp3EQaw936yaFoFgAB
ls
cd inhere
ls
find . –type f | xargs file
cat ./-file07
Password for next level: koReBOKuIDDepwhWk7jZC0RTdopnAYKh



Bandit Level 5 → Level 6

Level Goal

The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:

human-readable

1033 bytes in size

not executable


ssh bandit5@bandit.labs.overthewire.org -p 2220
password: koReBOKuIDDepwhWk7jZC0RTdopnAYKh
ls
cd inhere
find . –type d –size 1033c ! –executable
cat cat ./maybehere07/.file2
password for next level: DXjZPULLxYr17uwoI01bNLQbtFemEgo7


Bandit Level 6 → Level 7

Level Goal

The password for the next level is stored somewhere on the server and has all of the following properties:

owned by user bandit7

owned by group bandit6

33 bytes in size


ssh bandit6@bandit.labs.overthewire.org -p 2220
Password: DXjZPULLxYr17uwoI01bNLQbtFemEgo7
find / -type f –user bandit7 –group bandit6 –size33c
cat /var/lib/dpkg/info/bandit7.password
Password for next level: HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

Bandit Level 7 → Level 8

Level Goal

The password for the next level is stored in the file data.txt next to the word millionth


ssh bandit7@bandit.labs.overthewire.org -p 2220
Password: HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
strings data.txt | grep “millionth”
Password for next level: cvX2JJa4CFALtqS87jk27qwqGhBM9plV


Bandit Level 8 → Level 9

Level Goal

The password for the next level is stored in the file data.txt and is the only line of text that occurs only once


ssh bandit8@bandit.labs.overthewire.org -p 2220
Password: cvX2JJa4CFALtqS87jk27qwqGhBM9plV
sort data.txt
sort data.txt | uniq –c
Password for next level : UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR


Bandit Level 9 → Level 10

Level Goal

The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters.


ssh bandit9@bandit.labs.overthewire.org -p 2220
Password: UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
strings data.txt | grep “=”
Password for next level: truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk


Bandit Level 10 → Level 11

Level Goal

The password for the next level is stored in the file data.txt, which contains base64 encoded data


ssh bandit10@bandit.labs.overthewire.org -p 2220
Password: truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
cat data.txt
base64 –d data.txt
password for next level is: IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR


We will update levels 11-22 in the next post. Keep updated with us.


Comments


Drop us a Line, Let us Know What You Think

Thanks for submitting!

© AbridgedUp 2021 

bottom of page