Bandit 3
Objectives
The password for the next level is stored in a hidden file in the inhere directory.
Solution
as always lets start with and ls to see what is in the home directory
so there is a file named "spaces in this filename"
lets find out what kind of file this is
cat ./spaces\ in\ this\ filename
so we have the password for the next level........
now lets do it with python
>>> import os
Objectives
The password for the next level is stored in a hidden file in the inhere directory.
Solution
as always lets start with and ls to see what is in the home directory
bandit2@bandit:~$ lsspaces in this filename
so there is a file named "spaces in this filename"
lets find out what kind of file this is
bandit2@bandit:~$ file ./spaces\ in\ this\ filename./spaces in this filename: ASCII text
so we know its an ascii text file
cat ./spaces\ in\ this\ filename
bandit2@bandit:~$ cat ./spaces\ in\ this\ filenameUmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
so we have the password for the next level........
now lets do it with python
Comments
Post a Comment