[ Bandit Level 4 → Level 5 문제 리뷰 ]

Bandit Level 4 → Level 5
레벨 목표
다음 레벨을 위한 password는 사람만이 읽을 수 있는 파일인 inhere 디렉토리에 있습니다.
팁: 만약 터미널이 더러워졌을 경우 "reset" 명령어를 사용해보세요.
이 문제를 풀기 위해 필요할 수도 있는 명령어들
ls, cd, cat, file, du, find
문제 해설
(1) ls로 디렉토리 출력하기

inhere 디렉토리를 찾았다.
(2) cd를 사용해 inhere 디렉토리로 이동하기

cd ./inhere 을 입력해 inhere 디렉토리로 이동하였다.
(3) file을 이용해 데이터 타입 알아보기
file이란 지정된 파일의 타입을 확인하는 명령어이다.

file ./* 는 현재 디렉토리에 있는 모든 파일의 타입을 출력하라는 뜻이다.
-file00부터 -file09까지 타입을 출력해본 결과, -file07이 ASCII text로 사람이 읽을 수 있는
텍스트로 추정된다.
(3) cat으로 파일 읽기

cat ./-file07 로 파일 내용을 읽어보니
koReBOKuIDDepwhWk7jZC0RTdopnAYKh
가 Level 5를 위한 password 임을 알 수 있다.
Level 5 → Level 6 의 해설 ⤵
2022.04.10 - [LINUX] - OverTheWire: Level Goal: Bandit Level 5 → Level 6
'OS > LINUX' 카테고리의 다른 글
OverTheWire: Level Goal: Bandit Level 6 → Level 7 (0) | 2022.04.10 |
---|---|
OverTheWire: Level Goal: Bandit Level 5 → Level 6 (0) | 2022.04.10 |
OverTheWire: Level Goal: Bandit Level 3 → Level 4 (0) | 2022.04.10 |
OverTheWire: Level Goal: Bandit Level 2 → Level 3 (0) | 2022.04.10 |
OverTheWire: Level Goal: Bandit Level 1 → Level 2 (0) | 2022.04.10 |