Previous Level: Level 9
Login
SSH: ssh bandit9@bandit.labs.overthewire.org -p 2220
Password: UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
Task
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
The 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.
Solution
- First, we need to distinguish human-readable strings in ‘data.txt’. We use the
strings
command. - 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
grep
again (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).
|
|
https://overthewire.org/wargames/bandit/bandit10.html
Next Level: Level 11