Previous Level: Level 9
ssh email@example.com -p 2220
The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters.
A little bit of Theory
strings command finds human-readable strings in files. Specifically, it prints sequences of printable characters. Its main use is for non-printable files like hex dumps or executables.
- First, we need to distinguish human-readable strings in ‘data.txt’. We use the
- Next, we want to filter that output by looking at lines that include more than one equal sign. - Assuming the equal signs and the password are on the same line, we can use
grepagain (as in Level 6). Since the task was unspecific regarding the number of equal signs, I used 3. However, next to the password, there are not too many lines with equal signs, so any amount between 1 and 10 would work (however, 2 to 10 would give the same result).
Next Level: Level 11