문제
The password for the next level is stored in a file called --spaces in this filename-- located in the home directory
## 문제 요구사항
--spaces in this filename-- 파일을 열어 다음 비밀번호를 획득
## 내가 사용한 명령어
ssh bandit2@bandit.labs.overthewire.org -p 2220
ls
cat ./--spaces\ in\ this\ filename--
## 왜 이 명령어를 골랐는가
ls 현재 디렉토리 파일확인
공백을 그대로 입력하면 여러 개의 인자로 입력되므로 \로 공백임을 알려주거나
cat "--spaces in this filename--" 같은 큰따옴표(")나 직은따옴표(')로 묶어줘야함.

'Security > OverTheWire' 카테고리의 다른 글
| Bandit Level 4 → Level 5 (file 명령어) (0) | 2025.12.01 |
|---|---|
| Bandit Level 3 → Level 4 (숨김 파일) (0) | 2025.12.01 |
| Bandit Level 1 → Level 2 (0) | 2025.11.30 |
| Bandit Level 0 → Level 1 (0) | 2025.11.30 |
| Bandit Level 0 (0) | 2025.11.29 |