본문 바로가기
Security/OverTheWire

Bandit Level 9 → Level 10 (strings)

by curious week 2025. 12. 1.

문제

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,}'