김승현
[OverTheWire] Bandit Level 2 → Level 3 본문
문제
다음 단계로 가는 password가 적힌 파일의 이름은 홈디렉터리의 spaces in this filename이다.
풀이
사진에서 볼 수 있듯이 파일명이 spaces in this filename이다.
cat으로 보려고 해도 'spaces', 'in', 'this', filename'이라는 각각의 파일을 확인하려고 한다.
이런 문제는 파일명을 ''(작은 따옴표)로 묶으면 해결할 수 있다.
다음 문제
[OverTheWire] Bandit Level 3 → Level 4
문제 password는 inhere 디렉터리 안에 숨겨진 파일에 있다고 한다. 풀이 ls를 해봤을 때 inhere 디렉터리를 확인할 수 있다. cd 명령어를 통해서 inhere 디렉터리로 들어가서 ls를 해봐도 아무것도 뜨지
kshind.tistory.com
'Linux > OverTheWire : Bandit' 카테고리의 다른 글
[OverTheWire] Bandit Level 4 → Level 5 (0) | 2023.02.15 |
---|---|
[OverTheWire] Bandit Level 3 → Level 4 (0) | 2023.02.15 |
[OverTheWire] Bandit Level 1 → Level 2 (0) | 2023.02.15 |
[OverTheWire] Bandit Level 0 → Level 1 (0) | 2023.02.15 |
[OverTheWire] Bandit Level 0 (0) | 2023.02.15 |