Writeups from challenges and CTFs i take part in.
After logging in with
ssh bandit2@bandit.labs.overthewire.org -p 2220
Password: 263JGJPfgU6LtdEvgfWU1XP5yac29mFx
that the ls command shows a --spaces in this filename-- file. Since we know from Level 2, every file whose name contains a - must be passed as an argument only by its’ full filename:
cat ./--spaces in this filename-- should do the job then, right?
Well not really, as there also are some spaces inside the filename. This means we’ll have to wrap the filename in quotes:
cat ./"--spaces in this filename--" wil give us our password:
MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx