
https://overthewire.org/wargames/bandit/bandit4.html
Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
Commands you may need to solve this level
ls, cd, cat, file, du, find
이번 레벨도 쉽다.
bandit3@bandit:~$ [1]
bandit3@bandit:~$ ls [2]
inhere
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ls [3]
bandit3@bandit:~/inhere$ ls -al [4]
total 12
drwxr-xr-x 2 root root 4096 May 7 20:14 .
drwxr-xr-x 3 root root 4096 May 7 20:14 ..
-rw-r----- 1 bandit4 bandit3 33 May 7 20:14 .hidden
bandit3@bandit:~/inhere$ file .hidden [5]
.hidden: ASCII text
bandit3@bandit:~/inhere$ cat .hidden [6]
p??????????????????????????????
다음 단계로 넘어가자
ssh -p 2220 bandit4@bandit.labs.overthewire.org
.(점)을 찍는다.ls --help
...
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
...
ls에 옵션으로 -a를 주면 된다. -> ls -al-A 옵션을 주면 .(현재경로), ..(상위경로)를 제외한 모든 파일/경로를 출력한다.
.(점)으로 시작하는 파일/경로는 숨긴다는 리눅스의 전통을 존중하는 건지 (아니면 8조나 주고 깃허브를 인수해서 그런건지) git init 명령어로 생성되는 .git 폴더는 자동으로 숨김처리 해준다..idea 폴더는 자동으로 숨김처리 안해준다.