문제설명


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 solve this level ls, cd, cat, file, du, find


문제풀이

cd명령어로 inhere directory에 가보면 파일들이 있다.
첫번째 파일을 읽어보니, 이상한 문자가 출력되는데, 딱봐도 abnormal flag이다.
이제 이걸 다 읽어봐야 되는데, 너무 귀찮다.

첫번째로 file의 정보를 출력해서, ASCII TEXT파일을 확인하는것도 좋지만, 그냥 다 읽어보면 그것도 좋다. ㅎㅎ

awk는 스크립트언어인데 파일의 텍스트들을 조작하여 출력할수있게 해줍니다.

awk man page를 보거나, 링크혹은 tutorial들을 검색해보면 좋겠다.

댓글남기기