Bandit Level 1 → Level 2
Goal: Find the password for the next level.
🔍 Objective:
“The password for the next level is stored in a file called
-. It is in the home directory.”
After Googling how to read files starting with -
I found that ./ should work so lets try it.
bandit1@bandit:~$ ls
-
bandit1@bandit:~$ cat ./-
263JGJPfgU6LtdEvgfWU1XP5yac29mFx
TaaaaDaaaa!
Why this works?:
- Simply doing
cat -tells cat to read from standard input (stdin), not read a file named -. - using
./explicitly refers to the file named - in the current working directory. - another method that worked for me was
cat -- -