OverTheWire: Bandit Level 2
This is going to be a walkthrough of Level 1 of Bandit from OverTheWire Wargames.
We found the password from level 1.
Username: bandit2
Password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
SSH into the box.
Doing ls
lists what looks like multiple files.
But if we use the -l
(dash L) option, which uses a long listing format, we see that it is in fact a file with spaces in its name.
There are many ways to deal with files that have spaces in their filename. Two of the most common ways are:
1. To surround the filename with quotes or double quotes.
2. To use escape characters.
This guide here gives a good explanation on quotes and escape characters > https://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html
To continue, please read my Bandit 3 walkthrough. Level 3
Thank you for reading.