CTF

Level 8 - Find password in a data.txt after the word millionth (Misc)

Description

The goal of this level is to get the password for the next level stored in data.txt next to the word millionth

Tech used

  • cat
  • grep

Solutions

Run ssh bandit7@bandit.labs.overthewire.org -p 2220. Password is morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj

  • Grep file contents
    • Run cat data.txt | grep -E millionth | grep -Eo "\w*$"

Notes

  • -Eo implies extended regex and only print the matched part of the line