Bandit 6
Objectives
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:
Solution
So we need to find a file that could be in a number of differnt directories
that is a not an excutable, human readable and 1033 bytes
I'm assuming the file size will be the best place to start to weed out the multiples files listed
so we will use find
Bam only one file let's cat that bad boy and see if the password is in there
Not to hard
now let's do it with python
#Import os moduleimport os#Import math and time moduleimport math,time
Objectives
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:
Solution
So we need to find a file that could be in a number of differnt directories
that is a not an excutable, human readable and 1033 bytes
I'm assuming the file size will be the best place to start to weed out the multiples files listed
so we will use find
bandit5@bandit:~$ find ./ -type f -size 1033c./inhere/maybehere07/.file2
Bam only one file let's cat that bad boy and see if the password is in there
bandit5@bandit:~/inhere$ cat ./maybehere07/.file2DXjZPULLxYr17uwoI01bNLQbtFemEgo7
Not to hard
now let's do it with python
Comments
Post a Comment