[OverTheWire System - Bandit] Level 5 >> Level 6

Level Goal

The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:

  • human-readable
  • 1033 bytes in size
  • not executable

 

다음 단계의 암호는 inhere 디렉토리 아래의 파일에 저장되며 다음 속성을 모두 가집니다.

  • 인간이 읽을 수 있는 파일 (아스키 코드)
  • 1033 byte의 크기
  • 실행 불 가능한 파일

Hint

1. ls 명령어

2. find 명령어

3. cat 명령어

Write Up

더보기

ls 명령어를 통해 inhere 디렉토리를 확인한 결과 엄청 많은 디렉토리들이 존재하는 것을 볼 수 있었다.

 

나는 하나하나 들어가서 확인하는 방법은 힘들다고 생각하여 find 명령어를 이용하여 문제 설명에 나온 조건들을 넣어서 검사해보기로 하였다. 위 사진은 file 사이즈가 1033 byte인 파일만 검색한 모습이다.

 

cat 명령어로 확인하니, bandit6의 pw가 보였다.

 

bandit6 :: DXjZPULLxYr17uwoI01bNLQbtFemEgo7