Over The Wire Bandit Level 0–1

br4ind3ad
2 min readJan 16, 2021

--

If you are here that means you have successfully logged into bandit0 using ssh command (Username — bandit0 & Password — bandit0)

Now that we are in bandit0, let's see what all we have i.e. directory, files, etc using the ls -la command

“ls” is basically used to list files or directories, by default it only shows the name of the files.

Using ls with -l will give output in a long list format including the file type, permissions, number of hard links, owner, group, size, date & name.

“-a” is used to show all hidden files.

Back to bandit Level 0–1, we have to find the password for bandit1

— use ls -la to see all the files & directories

— we can see a readme file(as its -rw….., dash in starting means a file, “d” in starting means a directory )

now using cat to read the file -> we find the password to ssh into bandit1.

bandit0@bandit:~$ ls -la
total 24
drwxr-xr-x 2 root root 4096 May 7 2020 .
drwxr-xr-x 41 root root 4096 May 7 2020 ..
-rw-r — r — 1 root root 220 May 15 2017 .bash_logout
-rw-r — r — 1 root root 3526 May 15 2017 .bashrc
-rw-r — r — 1 root root 675 May 15 2017 .profile
-rw-r — — — 1 bandit1 bandit0 33 May 7 2020 readme
bandit0@bandit:~$ cat readme
boJ9jbbUNN************utMc3MY1

:) we have successfully found the password to ssh into bandit1.

--

--

No responses yet