HTB | SwagShop
Last updated
Last updated
This is the Box on Hack The Box Linux Privilege Escalation 101 Track. Find the box here.
Exploit modification
GTFObins
IP: 10.10.10.140
Let's visit port 80
while looking at the directories I found http://swagshop.htb/app/etc/local.xml
Which have root/admin credentials
not able to find any login page so I started fuzzing again.
found /index.php/admin
let's try to login with the credential we got earlier, it was not working on googling I found this exploit.
In the script change target to http://swagshop.htb/index.php
and run the script
let's try forme:forme
and we are in
A simple Google search found me this.
In the script change username, password and install_date and run the script
now we can try for reverse shell
found the user.txt
we can use /usr/bin/vi /var/www/html/*
without password
and we can have root.txt
Now let's try for shell
GTFObin tells me how to get shell