CTF: Bandit Level 1 > 2 Walkthrough
Here we go again with another of the early levels at ‘Over the Wire’, it says for this one.
“Level Goal
The password for the next level is stored in a file called – located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find”

As usual, I will run the command ls so that I can see what directories and files there are in my location and I can see a file with the name – so they are starting to make it a little tricky.
In Linux/UNIX we can’t read the – as it is or even any file name that starts with a -, to do so we have to put the file path in front of the name.
So here I used:-
Cat ./-
And got the flag.

The reason for using ./ is because In Linux ./ refers to the current directory.
From there we exit bandit 1 and connect to bandit2 using the flag as the password and head to the next level.

See you next time for Bandit Level 2 > 3 Walkthrough
Bandit 1 to 2 = https://overthewire.org/wargames/bandit/bandit2.html