Skip to main content

Bandit

Bandit Level 0

ssh -p2220 bandit0@bandit.labs.overthewire.org

bandit0

Bandit Level 0 - Level 1

bandit0@bandit:~$ cat /home/bandit0/readme

bandit0@bandit:~$ cat /home/bandit0/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: ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If

Bandit Level 1 - Level 2

bandit1@bandit:~$ cat /home/bandit1/-

bandit1@bandit:~$ cat /home/bandit1/-
263JGJPfgU6LtdEvgfWU1XP5yac29mFx

bandit1@bandit:~$ cat ./-

bandit1@bandit:~$ pwd
/home/bandit1

bandit1@bandit:~$ cat ./-
263JGJPfgU6LtdEvgfWU1XP5yac29mFx

Bandit Level 2 - Level 3

bandit2@bandit:~$ cat "spaces in this filename"

bandit2@bandit:~$ pwd
/home/bandit2

bandit2@bandit:~$ cat "spaces in this filename" 
MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx

Bandit Level 3 - Level 4

bandit3@bandit:~$ cat ./inhere/...Hiding-From-You

bandit3@bandit:~$ pwd
/home/bandit3

bandit3@bandit:~$ ls -la
total 24
drwxr-xr-x  3 root root 4096 Sep 19  2024 .
drwxr-xr-x 70 root root 4096 Sep 19  2024 ..
-rw-r--r--  1 root root  220 Mar 31  2024 .bash_logout
-rw-r--r--  1 root root 3771 Mar 31  2024 .bashrc
drwxr-xr-x  2 root root 4096 Sep 19  2024 inhere
-rw-r--r--  1 root root  807 Mar 31  2024 .profile

bandit3@bandit:~$ ls -la inhere/
total 12
drwxr-xr-x 2 root    root    4096 Sep 19  2024 .
drwxr-xr-x 3 root    root    4096 Sep 19  2024 ..
-rw-r----- 1 bandit4 bandit3   33 Sep 19  2024 ...Hiding-From-You

bandit3@bandit:~$ cat ./inhere/...Hiding-From-You
2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ

Bandit Level 4 - Level 5

bandit4@bandit:~$ find ./inhere/ -type f -exec file {} +

bandit4@bandit:~$ find ./inhere/ -type f -exec file {} +
./inhere/-file08: data
./inhere/-file02: data
./inhere/-file09: data
./inhere/-file01: data
./inhere/-file00: data
./inhere/-file05: data
./inhere/-file07: ASCII text
./inhere/-file03: data
./inhere/-file06: data
./inhere/-file04: data

./inhere/-file07: ASCII text

bandit4@bandit:~$ cat ./inhere/-file07
4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw

Bandit Level 5 - Level 6

bandit5@bandit:~$ find ./ -type f -size 1033c -not -executable

bandit5@bandit:~$ find ./ -type f -size 1033c -not -executable
./inhere/maybehere07/.file2

bandit5@bandit:~$ cat ./inhere/maybehere07/.file2
HWasnPhtq9AVKe0dmk45nxy20cvUa6EG
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        bandit5@bandit:~$ 

Bandit Level 6 - Level 7

Bandit Level 7 - Level 8

Bandit Level 8 - Level 9

Bandit Level 10 - Level 11

Bandit Level 11 - Level 12

Bandit Level 12 - Level 13

Bandit Level 13 - Level 14

Bandit Level 14 - Level 15

Bandit Level 15 - Level 16

Bandit Level 16 - Level 17

Bandit Level 17 - Level 18

Bandit Level 18 - Level 19

Bandit Level 20 - Level 21

Bandit Level 22 - Level 23