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

  1. Verify the file's presence in the home directory:

ls
ls

This confirms the existence of a file named spaces in this filename.

  1. Display the content of the file:

cat spaces\ in\ this\ filename
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"
cat "spaces in this filename"
  1. The revealed password is: MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx

  2. 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 line

  • Alternative methods like using quotes "" can also be used to handle spaces in filenames

  • Proper handling of special characters in filenames is crucial for file operations

-- Othmane

Last updated

Was this helpful?