What is it? @.@

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

2014-01-22

OverTheWire - Bandit - Level 1 to Level 2

Description:

Level Goal
The password for the next level is stored in a file called - 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 "dashed filename"
Advanced Bash-scripting Guide - Chapter 3 - Special Characters
Solution:
  1. [Comment] Using SSH to connect the server
  2. sp@simple-plan:~|=> ssh bandit1@bandit.labs.overthewire.org
    ...
    bandit1@bandit.labs.overthewire.org's password: boJ9jbbUNNfktd78OOpsqOltutMc3MY1
  3. [Comment] Using ls command to list directory contents
  4. bandit1@melinda:~$ ls
    -
  5. [Comment] Using cat command to output file's contents
  6. bandit1@melinda:~$ cat ./\-
    CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
  7. [Comment] Using exit command to disconnect connection to server
  8. bandit1@melinda:~$ exit
    logout
    Connection to bandit.labs.overthewire.org closed.
  9. [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