OverTheWire - Bandit - Level 2 → Level 3

Warning: This post contains a solution!

Only continue if:
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!


Connect to the server using the following credentials:

Server: bandit.labs.overthewire.org
Port: 2220
Username: bandit2
Password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

Let us have a look at the files in the current folder:

bandit2@bandit:~$ ls
spaces in this filename

Just on file named "spaces in this filename" is available.
Let us output the content of it using apostrophes, because the filename has spaces in it:

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

Another way to output the content of files with spaces in the filename is to escape the spaces:

bandit2@bandit:~$ cat spaces\ in\ this\ filename
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
Show Comments