Level Goal
The password for the next level is stored in a hidden file in the inhere directory
비밀번호는 inhere 디렉토리의 숨겨진 파일에 저장되어 있다
Code
bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ cd inhere
bandit3@bandit:~/inhere$ ls -al
total 12
drwxr-xr-x 2 root root 4096 Oct 16 14:00 .
drwxr-xr-x 3 root root 4096 Oct 16 14:00 ..
-rw-r----- 1 bandit4 bandit3 33 Oct 16 14:00 .hidden
bandit3@bandit:~/inhere$ cat .hidden
#비밀번호
ls 명령어에 -a 옵션을 사용하면 숨겨진 파일을 확인할 수 있다. 숨겨진 파일은 단지 .으로 시작하는 파일일뿐이므로 읽기 및 수정이 자유롭다.(같은 이유로 .과 ..도 숨겨진 파일 취급을 받는다)
'wargame > bandit' 카테고리의 다른 글
Level 5 → Level 6 (0) | 2019.02.14 |
---|---|
Level 4 → Level 5 (0) | 2019.02.14 |
Level 2 → Level 3 (0) | 2019.02.14 |
Level 1 → Level 2 (0) | 2019.02.14 |
Level 0 → Level 1 (0) | 2019.02.14 |