Challenge Information
- Platform: OverTheWire (Bandit)
- Difficulty: Easy
- Category: Linux
Overview
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.
Solution
SSH into machine on port 2220 with password from previous level.
ssh -p 2220 bandit9@bandit.labs.overthewire.org
The data.txt file is a binary file. So in order to grep we have to pass the --binary-file=text flag.
grep --binary-file=text "====" data.txt

Lessons Learned
- Use
grepon binary files.
Tools Used
sshgrep