Previous Level: Level 7
ssh firstname.lastname@example.org -p 2220
Get the password from a file, next to the word millionth
A little bit of Theory
I already gave a small introduction to
grep in Level 6.
grep can be used to search lines that contain a specific pattern like follow
With the pipe (
|), we can pipe the output of
grep as input to look through a text file.
Checking the file size of data.txt, we can see it is huge:
So simply looking through the file, would take too long and be too much effort.
Instead, we can try using
grep, since the password is in the same line as the word ‘millionth’
Next Level: Level 9