Task

Read the content of the file called “-”

Login

SSH: bandit1@bandit.labs.overthewire.org -p 2220

Password: ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If

Theory

To read a file with an “unconventional name” such as - we need to use the path of the file ./.

Solution

  1. We log in to the remote host with the right credentials
~$: ssh bandit1@bandit.labs.overthewire.org -p 2220
  1. Search for the file and read it.
bandit1@bandit~$: ls 
-

bandit1@bandit~$: cat ./-
263JGJPfgU6LtdEvgfWU1XP5yac29mFx

We can now proceed to the next challenge.