Skip to content

Bandit 3 → 4

OverTheWire Linux Progressive

Goal: read the password from a hidden file inside the inhere directory.

bandit3@bandit
bandit3@bandit:~$ cd inhere
bandit3@bandit:~/inhere$ ls -la
total 12
drwxr-xr-x 2 root root 4096 Jul 28 19:03 .
drwxr-xr-x 3 root root 4096 Jul 28 19:03 ..
-rw-r----- 1 bandit4 bandit3 33 Jul 28 19:03 ...Hiding-From-You
bandit3@bandit:~/inhere$ cat ./...Hiding-From-You
The password you are looking for is: <password>
Password2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ

ls omits any name beginning with a dot by default, so -a is needed to list it. The leading dots are only a naming convention, not a filesystem attribute, so once you name the file it reads like any other.