OverTheWire Bandit Level 2 Walkthrough
Today we're doing a walkthrough of level 2 of the Bandit CTF wargame hosted at OverTheWire.org. The first thing to do is take a look at the level's objectives:
https://overthewire.org/wargames/bandit/bandit3.html
This level's Flag is located in a file called spaces in this filename located in the home directory. Next, let's login to the server using SSH:
ssh bandit2@bandit.labs.overthewire.org -p 2220
Don't forget to use the Flag from the previous level as the SSH password for this level. Once logged in, we'll look for the file that contains the Flag:
pwd
ls
To access files with spaces in the filename, we can wrap the filename in quotes (single or double quotes both work, as long as they match). So let's cat out the file:
cat "spaces in this filename"
Summary
Bandit2 requires us to access a file with spaces in its name, so we wrapped the filename in quotes to access the file.
Finish
Comments
Post a Comment