
Level Goal
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.
strings
| (파이프)
grep
"^=="
strings data.txt | grep "^=="
- data.txt 파일에서 사람이 읽을 수 있는 문자열을 먼저 추출하고, 그 중에서 시작이 '=='인 부분을 찾아 출력한다.
bandit9@bandit:~$ strings data.txt | grep "^=="
========== passwordk^
========== is
========== G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s
bandit10 : G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s