HTB - Legacy

Legacy

Getting Root:

  1. The box has smb and rdp ports opened

  2. Enumerating the smb service shows that the box is vulnerable to MS08-067 and MS17-010

  3. I found some exploits on searchsploit for MS08-067 but they were not very reliable so I decided to go for MS17-010

  4. Exploiting MS17-010 provides us a shell with system privileges.

Tools Used:

nmap

Nmap

Checking for SMB Vulnerabilities

Getting a Shell

Found a python script on searchsploit for MS08-067 but it didn't do anything.

I moved on to MS17-010 and I was able to find the following code on GitHub:

Got a shell as SYSTEM

Upgrading the shell

The shell is not very stable, so I decided to get a more liable shell using netcat.

System Info

Last updated