overthewire-writeups

Bandit07 -> 08: The Millionth Word

Challenge

Level Description

The password for the next level is stored in the file data.txt next to the word millionth. This file is quite large, so scrolling through it manually is out of the question!

The Process

When I logged in and checked the directory, I saw data.txt. Opening a massive file with cat would flood the terminal and make it impossible to find anything.

To solve this, I used grep, a tool designed to search for specific patterns within text. By searching for the keyword “millionth,” I could pull out the exact line containing the password.

Here is the command I used:

$ grep "millionth" data.txt

The output showed the word “millionth” followed by a string of characters. That string was the password I needed to move forward.

Password For the Next Level

[SPOILER]

What I Learned

Helpful Reading Material