본문 바로가기
공부/Bandit

[Bandit] Level 4 → Level 5

by m3t4m0n 2021. 1. 26.

문제 링크 : overthewire.org/wargames/bandit/bandit5.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 the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command. Commands you may need to s

overthewire.org

 

 

목표

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 디렉터리에서 사람이 읽을 수 있는 유일한 파일에 저장됩니다. 터미널이 엉망인 경우, reset 명령을 시도하세요.

 

사용 명령어

ls, cd, cat, file, du, find

 

 

문제 풀이

 

1. 계정에 접속하여 디렉터리를 조회하니 inhere 이름을 가진 디렉터리가 보인다. 내부로 들어가보면, 건드리기 귀찮아 보이는 "-" (dashed name file) 이 나열되어 있다.

 

2. 일일히 찾아보기는 귀찮으니까 file 명령어로 각 파일들의 유형을 한번에 조회했다. 사람이 읽을 수 있는 형식이라고 했으니, data 보다는 ascii text가 확률이 더 높겠다.

 

3. Level 3 → Level 4 에서 학습한대로 "-" 이 포함된 파일이름을 cat으로 확인하면 Level 5의 패스워드를 확인할 수 있다.

 

4. bandit 5 : koReBOKuIDDepwhWk7jZC0RTdopnAYKh

'공부 > Bandit' 카테고리의 다른 글

[Bandit] Level 3 → Level 4  (0) 2021.01.22
[Bandit] Level 2 → Level 3  (0) 2021.01.21
[Bandit] Level 1 → Level 2  (0) 2021.01.20
[Bandit] Level 0 → Level 1  (0) 2021.01.19

댓글