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
The password for the next level is stored in a file called – located in the home directory
ls, cd, cat, file, du, find
$ ssh bandit1@bandit.labs.
bandit1@bandit:~$ ls
–
bandit1@bandit:~$ cat ./-
CV1DtqXWVFXTvM2F0k09SHz0YwRINY
The password for the next level is stored in a file called spaces in this filename located in the home directory
ls, cd, cat, file, du, find
$ ssh bandit2@bandit.labs.
bandit2@bandit:~$ ls
spaces in this file name
bandit2@bandit:~$ cat spaces\ in\ this\ filename
UmHadQclWmgdLOKQ3YNgjWxGoRMb5l
Personalmente non sapevo come riscrivere il nome del file ma senza leggere ho risolto semplicemente usando il tasto TAB (sulla tastiera) dopo aver digitato l’iniziale s.
TAB serve ad autocompletare il comando o il percorso di un file, da usare sempre per risparmiare tempo ed essere certi della correttezza del path o percorso, utilissimo!
The password for the next level is stored in a hidden file in the inhere directory.
ls, cd, cat, file, du, find
$ ssh bandit3@bandit.labs.
bandit3@bandit:~$ ls -a inhere/
. .. .hidden
bandit2@bandit:~$ cat inhere/.hidden
pIwrPrtPN36QITSp3EQaw936yaFoFg
Prima opzione o flag sul comando ls , -a sta ad indicare all, tutti i file per approfondimenti come sempre fare riferimento alla pagina man di ls