Vaccine
Last updated
Last updated
Besides SSH and HTTP, what other service is hosted on this box?
Answer: FTP
This service can be configured to allow login with any password for specific username. What is that username?
Answer: anonymous
What is the name of the file downloaded over this service?
Answer: backup.zip
What script comes with the John The Ripper toolset and generates a hash from a password protected zip archive in a format to allow for cracking attempts?
Answer: zip2john
What is the password for the admin user on the website?
backup.zip password:41852963
Looking at index.html
Put the hash in a file and crack the hash with hashcat
Answer:qwerty789
What option can be passed to sqlmap to try to get command execution via the sql injection? Looking at sqlmap -h
Answer: --os-shell
What program can the postgres user run as root using sudo?
Get the cookie from the Website.
We get our shell.
Start the listener and run
Answer: vi
Submit user flag
Answer: ec9b13ca4d6229cd5cc1e09980965bf7
Submit root flag
Looking at files in the /var/www/html as there's this uses PHP. Looking in the dashboard.php file we see
user=postgres password=P@s5w0rd!
Looking at various options on GTBOBins
Open a file we could only do as sudo vi
Answer: dd6e058e814260bc70e9bbdef2715849