Link Search Menu Expand Document

Written By: TWinston-66

12/08/20

Bandit: Level 2→3

bandit level-2-3

The goal of this level is to get the password for the next level out of the file name spaces in this filename

To accomplish this we need to know how to handle spaces in file names

First we need to log into the level

  • Type the command ssh bandit2@bandit.labs.overthewire.org -p 2220
  • Enter the password CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

We know that the target file is located in the home directory but we can check using the ls command

To read the file we need to add ' before and after the file name

  • Type the command cat 'spaces in this filename'

We add the ' so that the machine can recognize the spaces that are being used in the file name

Then the password for the next level gets outputted

  • Copy the password UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
  • Type exit to logout

Bandit Back Next Level