Lessons learned
. Prepending a file "hides" it
Logging into Bandit 3
On a kali vm/ linux machine
Type:
ssh bandit3@bandit.labs.overthewire.org -p 2220
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
Completing The Challenge
The Goal:
password for next level located in a a hidden file in the inhere directory
The Solution:
bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ls
bandit3@bandit:~/inhere$ ls -a
. .. .hidden
bandit3@bandit:~/inhere$ cat .hidden
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
Sometimes its easier to copy the terminal. But let me explain:
ls lists files in the current directory. the - is a modifier for the previous command.
ls -a displays all files including hidden.
the . is the current directory
the .. is the previous directory
and .hidden is the hidden file
file that start with a . are automagically hidden from a normal ls
Comments
Post a Comment