Tuesday, June 7, 2022

Bandit2






bandit level 2

ssh server: bandit.labs.overthewire.org port 2220

username: bandit2

password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9




connect to the ssh server



by listing the bandit2 home directory we face a file named "spaces in this filename", regularly if we typed in the file name as it is cat command deals with every word as a separate file that's why it will respond with 

cat: spaces: No such file or directory

cat: in: No such file or directory

cat: this: No such file or directory

cat: filename: No such file or directory




so we need to find out a workaround, which is else using single or double quotes or use forward slash

$ cat spaces\ in\ this\ filename

OR

$ cat 'spaces in this filename'

OR

$ cat "spaces in this filename"




 all the previse methods will print out the contents of the file with spaces in its name which is the password for the next challenge bandit3

meet you in bandit3


Your comments and feedback are highly appreciated

Thank You

No comments:

Post a Comment

Bandit26

  Bandit26 bandit level26 ssh server: bandit.labs.overthewire.org port 2220 username:  bandit26 password:  c7GvcKlw9mC7aUQaPx7nwFstuAIBw1o1 ...