Skip to main content

Posts

Showing posts with the label Bandit4

Over the Wire - Bandit 4

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 bandit3@bandit:~$ ls inhere 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$ ls bandit3@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 .hidden pIwrPrtPN36QITSp3EQaw936yaFoFgAB so here is the password for the next level pIwrPrtPN36QITSp3EQaw936yaFoFgAB ​now lets do it with python pytbandit3@bandit:~/inhere$ python >>