Bandit Level 2 → Level 3
Goal: Find the password for the next level.
🔍 Objective:
“The Password for the next level is stored in a file called “spaces in this filename” located in the home directory.”
Once again utilizing google, I searched “spaces in filename” and this is what I found:
With this information, I tried what google said. Shoutout google and StackOverflow.
bandit2@bandit:~$ ls
spaces in this filename
bandit2@bandit:~$ cat 'spaces in this filename'
MNK8KNH3Usiio4lPRUEoDFPqfxLPLSmx
Why this works? :
- using ‘’ tells cat to use the entire string as a single argument
- also using \ as spaces also works as a replacement for spaces in a filename