문제 링크 : overthewire.org/wargames/bandit/bandit3.html
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. Level Goal The password for the next level is stored in a file called spaces in this filename located in the home directory Commands you may need to solve this level ls, cd, cat, file, du, find Helpful
overthewire.org
레벨 목표
The password for the next level is stored in a file called spaces in this filename located in the home directory
→ 다음 레벨의 비밀번호는 홈 디렉터리의 공백 이름을 가진 파일에 저장된다.(파일 이름이 " " 라는 소리)
사용 명령어
ls, cd, cat, file, du, find
힌트
구글에 spaces in filename 검색
문제 풀이
1. 홈 디렉터리의 파일을 확인해보니 다음과 같이 이름에 공백이 포함된 파일이 있다.
2. 공백을 포함한 파일 이름을 지정하기 위해서는 다음과 같이 역 슬래시("\") 를 삽입한다.
* 역 슬래시를( \ ) 사용하는 이유 : 리눅스에서 역 슬래시는 원래의 문자가 가진 의미를 문자로 명시하기 위해 사용된다.
→ 시스템에서 인식하는 특수 문자, 기호, 예약어들을 문자 그대로 인식하게 하기위해 사용한다.
- 예시 1 : 입출력 재지정(그냥 > 를 명시하면 재지정할 대상이 없어 오류를 출력하지만, 역 슬래시 후 입력 시 > 출력)
- 예시 2 : 역 슬래시를 출력하기 위해서는 역 슬래시를 두번 사용하면 된다.
3. bandit 3 : UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
'공부 > Bandit' 카테고리의 다른 글
[Bandit] Level 4 → Level 5 (0) | 2021.01.26 |
---|---|
[Bandit] Level 3 → Level 4 (0) | 2021.01.22 |
[Bandit] Level 1 → Level 2 (0) | 2021.01.20 |
[Bandit] Level 0 → Level 1 (0) | 2021.01.19 |
댓글