본문 바로가기
공부/Bandit

[Bandit] Level 3 → Level 4

by m3t4m0n 2021. 1. 22.

문제 링크 : overthewire.org/wargames/bandit/bandit4.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 hidden file in the inhere directory. Commands you may need to solve this level ls, cd, cat, file, du, find

overthewire.org

 

목표

The password for the next level is stored in a hidden file in the inhere directory.

→ 다음 레벨의 비밀번호는 inhere 디렉터리의 숨겨진 파일에 저장됩니다.

 

사용 명령어

ls, cd, cat, file, du, find

 

 

 

문제 풀이

 

1. 홈 디렉터리를 조회하면 다음과 같이 inhere 폴더가 존재한다.

 

2. inhere 내부에서 파일을 조회하면 아무것도 뜨지 않는다.

 

3. ls 명령어에 -al ( a[all] : 모든 파일 / l[long] : 자세한 내용 출력, 권한, 소유자, 그룹, 파일 크기, 수정 일자, 파일 이름 등 ) 옵션을 주어 재조회하니 숨겨진 .hidden 파일 확인

 

4. 해당 히든 파일 내용을 확인하면 bandit4의 패스워드를 확인할 수 있다.

 

5. bandit 4 : pIwrPrtPN36QITSp3EQaw936yaFoFgAB

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

[Bandit] Level 4 → Level 5  (0) 2021.01.26
[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

댓글