What is it? @.@

Here is the place where I record some tactics about wargame, systems, and other security issues.

2014-01-23

OverTheWire - Bandit - Level 2 to Level 3

Description:

Level Goal
The password for the next level is stored in a file called spaces in this filename located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find
Helpful Reading Material
Google Search for "spaces in filename"
Solution:
  1. [Comment] Using SSH to connect the server
  2. sp@simple-plan:~|=> ssh bandit2@bandit.labs.overthewire.org
    ...
    bandit2@bandit.labs.overthewire.org's password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
  3. [Comment] Using ls command to list directory contents
  4. bandit2@melinda:~$ ls
    spaces in this filename
  5. [Comment] Using cat command to output file's contents
  6. [Comment] Don't forget to escape white space
  7. bandit2@melinda:~$ cat ./spaces\ in\ this\ filename 
    UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
  8. [Comment] Using exit command to disconnect connection to server
  9. bandit2@melinda:~$ exit
    logout
    Connection to bandit.labs.overthewire.org closed.
  10. [Comment] It's done! Saving the password for next level.
Reference:
sshhttp://linuxcommand.org/man_pages/ssh1.html
lshttp://linuxcommand.org/man_pages/ls1.html
cathttp://linuxcommand.org/man_pages/cat1.html
exithttp://linuxcommand.org/man_pages/logout1.html

No comments:

Post a Comment