Level 2 → 3
Level Goal
The password for the next level is stored in a file called spaces in this filename located in the home directory.
Write-Up
Verify the file's presence in the home directory:
ls

This confirms the existence of a file named spaces in this filename.
Display the content of the file:
cat spaces\ in\ this\ filename

Note: To handle spaces in filenames, you can either use backslashes
to escape each space or enclose the entire filename in quotes ""
.
cat "spaces in this filename"

The revealed password is: MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx
Access the next level using the obtained password:
ssh [email protected] -p 2220
Enter the password when prompted.
Lessons Learned
Filenames can contain spaces
Backslashes
are used to escape spaces in filenames on the command lineAlternative methods like using quotes
""
can also be used to handle spaces in filenamesProper handling of special characters in filenames is crucial for file operations
-- Othmane
Last updated
Was this helpful?