-
OverTheWire: Level Goal: Bandit Level 2 → Level 3 풀이2021 SCP Mentoring/OverTheWire: Bandit 2021. 4. 25. 23:08
문제 home directory 안에 있는 spaces in this filename 파일에 안에 다음 레벨로 가기 위한 password가 저장되어 있다고 한다.
"공백이 있는 파일의 이름을 cat 명령어(cat 명령어가 아니더라도...)로 열려고 할 때에 어떻게 열 것인가?"를 묻는 문제인 것 같다.
ls 명령어를 통해 파일의 존재를 확인했고, cat 명령어를 통해 파일 안의 내용을 확인하면 된다.
필자같은 경우는 cat s* 을 사용하여 파일을 열었다, s*은 s로 시작하는 모든 것(file, directory)을 뜻한다.
즉, spaces in this filename 포함이다.
그렇게 password UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK 를 얻었다.
SSH 명령어를 사용하여 bandit3로 연결하고
$ ssh bandit3@bandit.labs.overthewire.org -p 2220
password에 UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK 를 입력하였다.
'2021 SCP Mentoring > OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire: Level Goal: Bandit Level 4 → Level 5 풀이 (0) 2021.04.26 OverTheWire: Level Goal: Bandit Level 3 → Level 4 풀이 (0) 2021.04.25 OverTheWire: Level Goal: Bandit Level 1 → Level 2 풀이 (0) 2021.04.25 OverTheWire: Level Goal: Bandit Level 0 → Level 1 풀이 (0) 2021.04.25 OverTheWire: Level Goal: Bandit Level 0 풀이 (0) 2021.04.25