문제
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.
## 문제 요구사항
사람이 읽을 수 있는 문자열 중 하나로 data.txt 파일
앞에는 여러 개의 '=' 문자가 붙어 있다
## 내가 사용한 명령어
ssh bandit9@bandit.labs.overthewire.org -p 2220
strings data.txt | grep -E '={3,}'
## 왜 이 명령어를 골랐는가
strings로 문자열만 고르기
grep으로 일정문자열 검색
-E 정규식 검색
## 어떤 시행착오를 겪었는가
strings data.txt로 검색하니 여러 줄이 나왔다.
strings data.txt | grep '======'
# 또는 (정규식)
strings data.txt | grep -E '={3,}'


'Security > OverTheWire' 카테고리의 다른 글
| Bandit Level 11 → Level 12 (tr) (0) | 2025.12.01 |
|---|---|
| Bandit Level 10 → Level 11 (base64) (0) | 2025.12.01 |
| Bandit Level 8 → Level 9 (uniq) (0) | 2025.12.01 |
| Bandit Level 7 → Level 8 (grep) (0) | 2025.12.01 |
| Bandit Level 6 → Level 7 (find, 2>/dev/null) (0) | 2025.12.01 |