Security/CTF
Bandit Level 3 → Level 4 [3/34]
LimSeongHyeon
2025. 5. 27. 23:18
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored in a file called spaces in this filename located in the home directory Commands you may need to solve thi
overthewire.org
The password for the next level is stored in a hidden file in the inhere directory.
확인할 때, 단순히 ls로 확인하는 것 보다 ls -l이 더 직관적이여서 이제 ls -l로 확인하려고 한다.
bandit3@bandit:~$ ls -l
total 4
drwxr-xr-x 2 root root 4096 Apr 10 14:23 inhere
앞에 d가 달려있는 것을 보아하니 디렉터리인가보다. 들어가서 확인해보자.
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ls -l
total 0
들어가서 확인해보니 아무런 파일이 없다고 나온다. 숨김 파일중에 존재하는지 한번 확인해보자.
bandit3@bandit:~/inhere$ ls -la
total 12
drwxr-xr-x 2 root root 4096 Apr 10 14:23 .
drwxr-xr-x 3 root root 4096 Apr 10 14:23 ..
-rw-r----- 1 bandit4 bandit3 33 Apr 10 14:23 ...Hiding-From-You
이제 ls -l도 아닌 ls -la를 하는 습관을 들여야겠다.
bandit3@bandit:~/inhere$ cat ...Hiding-From-You
[PASSWORD]