Level Goal
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.
다음 단계의 암호는 사람이 읽을 수 있는 유일한 파일인 inhere 디렉토리에 저장됩니다. 팁: 터미널이 잘못된 경우 "재설정" 명령을 사용해 보십시오.
Hint
1. ls 명령어
2. cat 명령어
3. file 명령어
Write Up
더보기
![](https://blog.kakaocdn.net/dn/xugy8/btriRLMtI1X/hEVMnx5OkU1yzwVeEh49X1/img.png)
![](https://blog.kakaocdn.net/dn/tFk0o/btriWMJ7yuS/rkYJXq3K9w9GFOlICJT7w1/img.png)
![](https://blog.kakaocdn.net/dn/cdGL8A/btriXBhrgDu/FEq1Zar8dMzts1KSw5nquk/img.png)
![](https://blog.kakaocdn.net/dn/uInPo/btriWK6E3Y3/rP1xKZajJoW5ZfRCKcIjR0/img.png)
![](https://blog.kakaocdn.net/dn/dac4fK/btriWMJ8O7W/lQyqxTPiryYslz38bkRddK/img.png)
![](https://blog.kakaocdn.net/dn/xugy8/btriRLMtI1X/hEVMnx5OkU1yzwVeEh49X1/img.png)
bandit3 문제처럼 ls 명령어로 확인한 결과 inhere 디렉토리에 많은 파일이 확인되었다.
![](https://blog.kakaocdn.net/dn/tFk0o/btriWMJ7yuS/rkYJXq3K9w9GFOlICJT7w1/img.png)
나는 일단 -file00 파일을 cat 명령어를 이용하여 확인하였다.
문자열이 깨지는 것을 보니, 아스키 코드로 작성되지 않은 파일인 듯 싶다.
![](https://blog.kakaocdn.net/dn/cdGL8A/btriXBhrgDu/FEq1Zar8dMzts1KSw5nquk/img.png)
file 명령어를 통해 파일의 타입을 학인한 결과 -file07 파일만이 아스키코드로 작성된 것으로 확인되었다.
![](https://blog.kakaocdn.net/dn/uInPo/btriWK6E3Y3/rP1xKZajJoW5ZfRCKcIjR0/img.png)
확인한 결과 bandit5의 pw로 보이는 값이 출력되었다.
![](https://blog.kakaocdn.net/dn/dac4fK/btriWMJ8O7W/lQyqxTPiryYslz38bkRddK/img.png)
로그인을 해본 결과 해당 값은 bandit5의 pw가 맞았다.
bandit5 :: koReBOKuIDDepwhWk7jZC0RTdopnAYKh
'Wargame > OverTheWire' 카테고리의 다른 글
[OverTheWire System - Bandit] Level 7 >> Level 8 (0) | 2021.10.27 |
---|---|
[OverTheWire System - Bandit] Level 6 >> Level 7 (0) | 2021.10.27 |
[OverTheWire System - Bandit] Level 5 >> Level 6 (0) | 2021.10.26 |
[OverTheWire System - Bandit] Level 1 >> Level 2 (0) | 2021.10.26 |
[OverTheWire System - Bandit] Level 0 >> Level 1 (0) | 2021.10.25 |
Comment