Avatar Image
Gajendra Mahato
Bandit Wargame

Bandit: Level 2 => Level 3

The password for the next level is stored in a file called spaces in this filename located in the home directory. Here are the details which we have from the previous level: Host: bandit.labs.overthewire.org Port: 2220 Username: bandit2 Password: 263JGJPfgU6LtdEvgfWU1XP5yac29mFx So, The SSH syntax will be: sshpass -p 263JGJPfgU6LtdEvgfWU1XP5yac29mFx ssh [email protected] -p 2220 In Bash, filenames with spaces are treated as different files. If a filename contains spaces and we want to access its contents, here are some ways to achieve this: ...

January 3, 2020 · 1 min