Skip to content

Bandit Level 1-2@overthewire.org

Description

The password for the next level is stored in a file called - located in the home directory

Current level credentials

Key Value
Server-name: bandit.labs.overthewire.org
Port: 2220
User: bandit2
Password: rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi

Current level login

Log in

1
sshpass -p rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi ssh -p 2220 bandit2@bandit.labs.overthewire.org
Note: You might need to install sshpass before using it. The ssh command can also be used on its own. If so, copy-paste the password when requested.

Hints And Solution

Hint(s)

Look through the links in the Resources section.

Solution
1
2
3
4
5
bandit2@bandit:~$ cat 'spaces in this filename'    # (1)

bandit2@bandit:~$ cat "spaces in this filename"    # (2)

bandit2@bandit:~$ cat spaces\ in\ this\ filename  # (3)
  1. enclosed in single quotes
  2. enclosed in double quotes
  3. escaped blank spaces in filename

It is necessary to escape blank spaces in filenames with a backslash, \, in order to read them. For instance, blank\ space. Alternatively, the filename might be enclosed in single or double quotes like "blank space." or 'blank space'

Resources

Resources

Bandit-level3@overthewire
How to reference filename with spaces in Linux
Google Search for “spaces in filename”

Comments

Any feedback and suggestions are welcome. This website was created using mkdocs and the material plugin. If you want, you can make a pull request. The repository is https://github.com/dabonzo/itsec_hp