워게임/bandit

[bandit] -> level 6

hy25u 2024. 11. 14. 20:36

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

Commands you may need to solve this level

  • ls
  • find
  • cat

Solution

inhere 디렉터리 내부에 총 20개의 디렉터리가 있다.  이 안에 또 다른 파일들이 있고 이걸 다 열어서 보기에는 힘드니까 find 명령어로 파일을 찾아야 한다. find . -size 1033c 로 입력하면 되는데 여기서 c는 사이즈 중 바이트 단위를 나타낸다.

▶HWasnPhtq9AVKe0dmk45nxy20cvUa6EG