Skip to content

Bandit 7 → 8

OverTheWire Linux Progressive

Goal: find the password sitting next to the word millionth in a large data file.

bandit7@bandit
bandit7@bandit:~$ grep millionth data.txt
millionth <password>
PassworddfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc

grep scans the file line by line and prints those matching the pattern, so a single keyword extracts its record from a file of millions of lines without ever reading the whole thing yourself.