Bandit level 5→6

거대한리트리버·2023년 8월 8일
0
post-thumbnail

환경 : Linux Ubuntu 22.04

문제

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 디렉토리에 파일 또는 디렉토리가 얼마나 있는지 확인해보자.

일일이 확인해주기엔 너무 많다.
size가 1033인 것을 이용하여 size 명령어로 파일을 찾아주자.

find -size 1033c

+)바이트인데 c인 이유는 b가 블록 단위를 의미하기 때문이라고 한다.
킬로바이트, 메가바이트, 기가바이트는 각각 첫 글자를 따서 k,m,g로 표현한다.
maybehere07의 file02가 1033바이트 size인 파일임을 찾았으니
이 파일을 읽어주면 bandit6의 비밀번호를 얻을 수 있다.
password : P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU

profile
강아지귀여워

0개의 댓글