Bandit9 - bandit10

From JaxHax
Jump to navigation Jump to search

Level Goal

The password for the next level is stored in the file data.txt in one of the few human-readable strings, beginning with several ‘=’ characters.


This is another good level for grep using a regex. The regex is "^=". The "^" part tells it that the "=" must be at the beginning of the line. Trying this however shows the file is binary, so we also use strings to filter out the human readable strings.

bandit9@melinda:~$ cat data | grep "^="

bandit9@melinda:~$ cat data.txt | grep "="
Binary file (standard input) matches

bandit9@melinda:~$ strings data.txt | grep "^="
========== password
========== ism
========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk