문제
The password for the next level is stored in a file called - located in the home directory
## 문제 요구사항
- 파일을 열어 다음 비밀번호를 얻어라
## 내가 사용한 명령어
pwd
cat /home/bandit1/-
## 왜 이 명령어를 골랐는가
cat -으로는 열 수 없으므로
## 어떤 시행착오를 겪었는가
- 는 “표준 입력(stdin)”을 의미하는 특수 토큰이다.
“파일 이름 '-'을 읽어라”가 아니라 “표준 입력을 읽어라”로 즉, 키보드 입력을 기다리는 상태가 됨.
cat /home/bandit1/- 또는 cat ./-으로 열어야 함.
## 다음 단계에서 쓸 수 있는 패턴은 무엇인가
상대 주소나 절대 주소를 체크 ./

'Security > OverTheWire' 카테고리의 다른 글
| Bandit Level 3 → Level 4 (숨김 파일) (0) | 2025.12.01 |
|---|---|
| Bandit Level 2 → Level 3 (공백 처리) (0) | 2025.12.01 |
| Bandit Level 0 → Level 1 (0) | 2025.11.30 |
| Bandit Level 0 (0) | 2025.11.29 |
| Over the Wire - Wargames (0) | 2025.09.18 |