Overthewire-Bandit Level 9 - Strings-Grep
Ref:
Bandit Level 9
Level Goal The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters.
Commands you may need to solve this level grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
SSH
1
2
ssh bandit9@bandit.labs.overthewire.org -p 2220
4CKMh1JI91bUIZZPXDqGanal4xvAg0JM
Command
1
2
bandit9@bandit:~$
strings data.txt | grep "==="
Output
1
2
3
4
========== the
========== password
f\Z'========== is
========== FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey
Command
1
strings data.txt | grep "==" | head -n 1
1
strings data.txt | grep "==" | awk '{print $NF}'
This post is licensed under CC BY 4.0 by the author.
