Level 7 → 8

Level Goal

The password for the next level is stored in the file data.txt next to the word millionth

Write-Up

  1. List the content of the current directory:

ls
ls

This confirms the presence of the data.txt file.

  1. Display the content of data.txt:

cat data.txt
cat data.txt

This file contains a large amount of text, making manual search impractical.

  1. Search for the line containing 'millionth' in data.txt:

grep millionth data.txt
grep millionth data.txt
  • grep: Command for searching text using patterns

  • millionth: The pattern I'm searching for

  • data.txt: The file we're searching in

The password retrieved: dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc

  1. Access the next level:

ssh [email protected] -p 2220

Enter the password when prompted.

Lessons Learned

  • Viewing file contents with cat helps understand the data structure

  • grep is efficient for finding specific lines in large files

  • The password isn't always hidden - sometimes it's just mixed with other data

-- Othmane

Last updated

Was this helpful?