Bandit level 3
Bandit 3
The instructions:
Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
Commands you may need to solve this level
ls, cd, cat, file, du, find
bandit3@bandit:~$
bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ cd ./inhere
bandit3@bandit:~/inhere$ ls
bandit3@bandit:~/inhere$ ls -als
total 12
4 drwxr-xr-x 2 root root 4096 Jun 15 11:41 .
4 drwxr-xr-x 4 bandit3 bandit3 4096 Aug 19 23:32 ..
4 -rw-r----- 1 bandit4 bandit3 33 Jun 15 11:41 .hidden
bandit3@bandit:~/inhere$ cat ./.hidden
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
Okay so this all is pretty easy, we don't get our first taste of something interesting until a few levels in.
So we display the contents of our working directory. We see a folder called "inhere" and then use "cd" to change directories into that folder. Once inside we try to display the contents of that directory, which comes up with nothing. I add a couple of switches to our command. When naming a folder "." will hide it. to display this we need to use the "-a" switch.
bandit3@bandit:~/inhere$ ls -a
. .. .hidden
So then what is the point of the other two? Well aside from showing that you can combine switches, we get some valuable information like the file size with the "-s" switch and the "-l" gives longer format file name giving us information on the last time a file was modified as well as its permissions.
Comments
Post a Comment