반응형
https://overthewire.org/wargames/bandit/bandit2.html
Level Goal
The password for the next level is stored in a file called - located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find
풀이
파일 이름이 '-' 인가 보다. 이런 특수기호로 이름이 되었을 때, 어떻게 여는가에 대한 문제인 듯 하다.
참고 자료
https://www.webservertalk.com/dashed-filename
위에 글을 읽어보면, -로 시작하는 파일이름을 cat 커맨드로 읽으려면 두가지 방법이 있다.
cat < -filename
cat ./-filename
ls 커맨드로 이름이 -인 파일이 있는 것을 확인 할 수 있다.
cat < - 커맨드로 플래그를 획득할 수 있다.
더보기
rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi
반응형