BB

technology and craziness.

BB

technology and craziness.

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: CV1Dxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

1
2
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:

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

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

1
2
bandit2@bandit:~$ cat spaces\ in\ this\ filename
UmHaxxxxxxxxxxxxxxxxxxxxxxxxxxxx