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 7 to Level 8

Description:

Level Goal
The password for the next level is stored in the file data.txt next to the word millionth
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Helpful Reading Material
The unix commandline: pipes and redirects
Solution:
  1. [Comment] Using SSH to connect the server
  2. sp@simple-plan:~|=> ssh bandit7@bandit.labs.overthewire.org
    ...
    bandit7@bandit.labs.overthewire.org's password: HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
  3. [Comment] Using ls command to list directory contents
  4. bandit7@melinda:~$ ls
    data.txt
  5. [Comment] Using grep command to search for a specific pattern
  6. bandit7@melinda:~$ grep millionth data.txt
    millionth cvX2JJa4CFALtqS87jk27qwqGhBM9plV
  7. [Comment] Using exit command to disconnect connection to server
  8. bandit7@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
cdhttp://linuxcommand.org/lc3_man_pages/cdh.html
findhttp://linuxcommand.org/man_pages/find1.html
grephttp://linuxcommand.org/lc3_man_pages/grep1.html

1 comment:

  1. this command gives the solution in one time:
    find / -name data.txt -type f -exec grep -H 'millionth' {} \; 2>&1 | grep -v -F Permission

    ReplyDelete