OverTheWire Bandit Level 2 Writeup — Read a Filename With Spaces
The password file is named spaces in this filename. The shell splits unquoted arguments on whitespace, so the filename has to be quoted or escaped to be treated as one argument. Platform: OverTheWire Bandit Category: Linux Fundamentals Level: 2 → 3 Difficulty: Beginner Technique: Shell quoting and escaping Level 2's home directory has one file, but its name contains spaces. In a shell, unquoted spaces separate arguments — so typing the filename as-is splits it into several nonsense arguments instead of one filename. "Level Goal: The password for the next level is stored in a file called spaces
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in