Level 0 > 1
The first level of bandit is straight forward, you won’t get to the end without passing this level!.
The instructions direct from the website:
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.
[danjhayman@fedora ~]$ ssh bandit0@bandit.labs.overthewire.org -p 2220
bandit0@bandit.labs.overthewire.org's password:
bandit0@bandit:~$ ls
readme
bandit0@bandit:~$ cat readme
NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL
Level 1 > 2
The second level was quite unusual, I’ve not had to interact with a file called “-“, looks like a sneaky tactic.
The instructions direct from the website:
The password for the next level is stored in a file called – located in the home directory
[danjhayman@fedora ~]$ ssh bandit1@bandit.labs.overthewire.org -p 2220
bandit1@bandit.labs.overthewire.org's password:
bandit1@bandit:~$ cat -
^C
bandit1@bandit:~$ cat < -
rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi
Level 2 > 3
The thrid level is a little more straight forward with double TAB auto-complete…
The instructions direct from the website:
The password for the next level is stored in a file called spaces in this filename located in the home directory.
[danjhayman@fedora ~]$ ssh bandit2@bandit.labs.overthewire.org -p 2220
bandit2@bandit.labs.overthewire.org's password:
bandit2@bandit:~$ ls
spaces in this filename
bandit2@bandit:~$ cat spaces\ in\ this\ filename
aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG
Level 3 > 4
The fourth level is simple once you know how.
The instructions direct from the website:
The password for the next level is stored in a hidden file in the inhere directory.
[danjhayman@fedora ~]$ ssh bandit3@bandit.labs.overthewire.org -p 2220
bandit3@bandit.labs.overthewire.org's password:
bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ ls inhere
bandit3@bandit:~$ ls -a inhere
. .. .hidden
bandit3@bandit:~$ cat inhere/.hidden
2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe