Skip to main content

Posts

Showing posts with the label Bandit3

Over the Wire - Bandit 3

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 bandit2@bandit:~$ ls spaces 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\ filename UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK so we have the password for the next level........ now lets do it with python >>> import os >>> var = "cat /home/bandit2/spaces\ in\ this\ filename" >>> os.system(var) UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK 0 >>> exit()