This room is about cracking a Minecraft server
So lovely :D
Reconnaissance
First, I added the ip to my /etc/hosts
file:
Then I performed an Nmap
scan:
Then I went to take a look to the webpage and its code:
I found something interesting inside the web code:
So itโs time to subdomain enumeration!
So I searched for the admin
subdomain (remember to add it to the /etc/hosts
):
I tried some common combinations but none worked, so itโs time for more enumeration!:
So I performed a more detailed scan again:
As nothing was found I tried the other subdomain store
, which had a 403
error:
As I wasnโt finding nothing, I tried to use gobuster
It seems like a web to find items, so Iโll try some SQLi
Capturing the request with Burp
I produced a 500 error:
So itโs time to use Sqlmap with that request:
Bingo!
We also found the hash of the user, so we can go to hashes.com and decrypt it:
Now we can login to the previously discovered admin
suibdomain:
Now I could obtain a reverse shell with:
Now I found and encrypted id_rsa on the .ssh
directory:
So Iโll copy it to my machine and bruteforce it:
Now Iโll crack it with John
:
So now weโve got the ssh password for the user xxultimatecreeperxx
.
To get the minecraft server flag we can do:
Now we run the command id
to check our groups and privileges:
Now we can to what weโve got access with group minecraft
:
We found the other userโs password!:
Now we can get the user flag:
Now we run sudo -l
to see capabilities:
Now I run this:
Weโve got the root flag :D
Machine pwned