다음 단계로 접속한다.
PS C:\Users\USER> ssh bandit2@bandit.labs.overthewire.org -p2220
...
bandit2@bandit.labs.overthewire.org's password:
...
bandit2@bandit:~$
비밀번호는 역시 전 단계에서 구한 것을 복사 붙여넣기해주면 되고, 화면에 출력되지는 않는다.
The password for the next level is stored in a file called spaces in this filename located in the home directory
문제의 설명에 따라 비밀번호를 담고 있는 파일을 읽어보자.
bandit2@bandit:~$ pwd
/home/bandit2
bandit2@bandit:~$ ls -l
total 4
-rw-r----- 1 bandit3 bandit2 33 Apr 10 14:23 spaces in this filename
bandit2@bandit:~$ cat "spaces in this filename"
MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx
bandit2@bandit:~$
ls 명령어를 통해 현재 경로(홈 디렉토리)에 있는 파일을 찾아보니 파일명에 공백이 포함되어 있다.
공백을 포함해서 하나의 파일명으로 인식하도록 하기 위해 파일명을 입력할 때 쌍따옴표("")로 감싸준다.
비밀번호를 복사해놓고 다음 단계로 넘어가보자.
'Bandit' 카테고리의 다른 글
| Bandit: Level 4 (2) | 2025.07.28 |
|---|---|
| Bandit: Level 3 (1) | 2025.07.28 |
| Bandit: Level 1 (0) | 2025.07.28 |
| Bandit: Level 0 (0) | 2025.07.19 |
| Bandit Wargame : Intro (0) | 2022.03.07 |