Level Goal
The password for the next level is stored in the file data.txt next to the word millionthCommands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdHelpful Reading Material
The unix commandline: pipes and redirectsSolution:
- [Comment] Using SSH to connect the server
- sp@simple-plan:~|=> ssh bandit7@bandit.labs.overthewire.org
...
bandit7@bandit.labs.overthewire.org's password: HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs - [Comment] Using ls command to list directory contents
- bandit7@melinda:~$ ls
data.txt - [Comment] Using grep command to search for a specific pattern
- bandit7@melinda:~$ grep millionth data.txt
millionth cvX2JJa4CFALtqS87jk27qwqGhBM9plV - [Comment] Using exit command to disconnect connection to server
- bandit7@melinda:~$ exit
logout
Connection to bandit.labs.overthewire.org closed. - [Comment] It's done! Saving the password for next level.
this command gives the solution in one time:
ReplyDeletefind / -name data.txt -type f -exec grep -H 'millionth' {} \; 2>&1 | grep -v -F Permission