Skip to content
Default image

OVERTHEWIRE – BANDIT LEVEL 2 -> LEVEL 3

First step, we need to ssh into bandit2

ssh bandit2@localhost
pass: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

The password for the next level is found in a file in the home directory. the name of the file is spaces in this filename.

If we try to cat out the filename as is, the command will treat each word separated by space as a separate file.

In order read a filename with spaces in it’s name, we have the following options:

Wrap the name in quotes

cat "spaces in this filename"

Or escape every space with “\”

cat spaces\ in\ this\ filename