Bandit Level 2 → Level 3 (walkthrough) Overthewire

login.
ssh bandit2@bandit.labs.overthewire.org -p 2220

The password for Level 2 (which you should have from the previous challenge) is required here.

2. List files in the home directory
After logging in, check the files in the current directory (home directory) using the “ls” command:

ls

You’ll see a file named “spaces in this filename”.

3. Access the file with spaces in the name
Since the file name has spaces, you need to either escape the spaces with backslashes or use quotation marks. The command to read the file can be:

Option 1: Using escape characters:

cat spaces in this filename

Option 2: Using quotation marks:

cat “spaces in this filename”

4. Retrieve the password
Once you run the above command, the password for Level 3 will be displayed on your screen.

Bandit Level 2 → Level 3 (walkthrough) Overthewire

Brother Anna

One thought on “Bandit Level 2 → Level 3 (walkthrough) Overthewire

Leave a Reply

Your email address will not be published. Required fields are marked *