OverTheWire Bandit Level 1 → 2 Walkthrough
Reading a file named with a dash using a path prefix
OverTheWire Bandit Level 1 → 2 Walkthrough
Level goal: The password for the next level is stored in a file called
-located in the home directory
Commands you may need: ls, cd, cat, file, du, find
Helpful reading:
Write-up
This was a bit tricky. The filename was -. A simple cat - didn’t work. This is becuase cat interprets - as stdin which means that instead of a file you give it an input from the terminal.
Thus I used cat ~/- to read from the file.
Level 2 password:
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
