Initial Enumeration
nmap
sql
1 | # Nmap 7.92 scan initiated Sun Dec 18 19:35:40 2022 as: nmap -vvv -sC -sV -oN nmap/soccer soccer.htb |
Web Enumeration
Running feroxbuster revil a directory tiny
Checking for default credential we find it to be admin:admin@123
lets try on the app and see what happens and that let us in.
Seeing the upload facility and tiny file manager being a php app lets upload a php shell and see what happen.
Lets execute it by opeing the endpoint
www-data -> player
Checking nginx config
we find a subdomain as soc-player.soccer.htb
Using the injection we get player password
player:PlayerOftheMatch2022
Player -> Root
Running linpeas
found a exploit for dstat
we can write to
and we get root