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 3 to Level 4

Description:

Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solution:
  1. [Comment] Using SSH to connect the server
  2. sp@simple-plan:~|=> ssh bandit3@bandit.labs.overthewire.org
    ...
    bandit3@bandit.labs.overthewire.org's password: UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
  3. [Comment] Using ls command to list directory contents
  4. bandit3@melinda:~$ ls
    inhere
  5. [Comment] Using cd command to change the shell working directory
  6. bandit3@melinda:~$ cd inhere/
  7. bandit3@melinda:~/inhere$ ls
  8. [Comment] Using ls command with -al options to list hidden directory contents
  9. bandit3@melinda:~/inhere$ ls -al
    total 12
    drwxr-xr-x 2 root    root    4096 Jun  6  2013 .
    drwxr-xr-x 3 root    root    4096 Jun  6  2013 ..
    -rw-r----- 1 bandit4 bandit3   33 Jun  6  2013 .hidden
  10. [Comment] Using cat command to output file's contents
  11. bandit3@melinda:~/inhere$ cat .hidden
    pIwrPrtPN36QITSp3EQaw936yaFoFgAB
  12. [Comment] Using exit command to disconnect connection to server
  13. bandit3@melinda:~$ exit
    logout
    Connection to bandit.labs.overthewire.org closed.
  14. [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
cdhttp://linuxcommand.org/lc3_man_pages/cdh.html

No comments:

Post a Comment