Bandit 4
Objectives
The password for the next level is stored in a hidden file in the inhere directory.
Solution
after connecting up let's see whats in the home directory
ok there is a directory called in here..... I bet there is something in there
let's ls again to see what the folder contains
it doesn't show anything. Let's try it with -a switch which will list all files in the folder even hidden ones
cool, cool, cool there is a file their name .hidden
let's see what kind of file it is
ok anonther text file
so here is the password for the next level
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
now lets do it with python
pytbandit3@bandit:~/inhere$ python
Objectives
The password for the next level is stored in a hidden file in the inhere directory.
Solution
after connecting up let's see whats in the home directory
bandit3@bandit:~$ lsinhere
ok there is a directory called in here..... I bet there is something in there
cd ./inhere
let's ls again to see what the folder contains
bandit3@bandit:~/inhere$ lsbandit3@bandit:~/inhere$
it doesn't show anything. Let's try it with -a switch which will list all files in the folder even hidden ones
bandit3@bandit:~/inhere$ ls -a. .. .hidden
cool, cool, cool there is a file their name .hidden
let's see what kind of file it is
bandit3@bandit:~/inhere$ file .hidden.hidden: ASCII text
ok anonther text file
bandit3@bandit:~/inhere$ cat .hiddenpIwrPrtPN36QITSp3EQaw936yaFoFgAB
so here is the password for the next level
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
now lets do it with python
Comments
Post a Comment