tutorial · bandit

Bandit Level 8

Use grep to find the line near the word 'millionth'.
banditgrepsearch
Optional narration
Marks this level complete in your browser.

Goal

The password is in data.txt next to the word millionth.

Steps

  1. SSH in:
ssh bandit8@bandit.labs.overthewire.org -p 2220
  1. Search for the keyword:
grep -n "millionth" data.txt

That line contains the password for Level 9.

Notes

  • -n prints the line number.
  • If the file is huge, grep is the right instinct (don’t cat giant files unless you have to).