https://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
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.
풀이
사람이 읽을 수 있는 파일이 존재 한다고 한다. 이게 무슨 소리인지 모르겠으니 직접 확인해보자.
저번 문제와 동일하게 inhere 디렉토리가 존재하므로, 해당 디렉토리로 이동한다.
inhere 내부를 들여다 보니, 총 9개의 파일이 존재한다. 이중에 읽을 수 있는 파일이 하나 있고, 그 파일을 찾으면, 플래그를 획득할 수 있는 듯 하다.
하나씩 다 확인해보면 되지만, 리눅스 커맨드로 찾아보자.
file 커맨드는 해당 파일의 타입을 출력해주는 커맨드 이다. ./*를 하면 현재 디렉토리의 모든 파일을 뜻한다.
여기서 -file07만 ASCII text 파일의 형태로 사람이 읽을 수 있을 것 같다.
파일 이름이 -로 시작해서 지난 단계에서 배웠던 것을 써먹어야 한다. 그렇게 해서 -file07을 읽으면 flag가 나온다.
lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR