HackTheBox - Optimum
Last updated
Was this helpful?
Last updated
Was this helpful?
All port scan gave us the same results, so our main intention is to lookout at port 80 (HTTP Server)
Looks like the website is running Rejetto HTTP File Server. There was a known vulnerability for this specific version. Version Running: HttpFileServer 2.3
We can use searchsploit or can even use google to checkout the vulnerability.
The search parameter is vulnerable and we can write HFS script to get Remote Code Execution.
We get a ping request back, that means we can have RCE. Let's try to get a reverse shell using powershell. We will use nishang's Invoke-PowershellTCP.ps1
script to get a connection back.
So the system looks vulnerable to MS16-032 Secondary Logon Handle Privilege Escalation. We can get the script from exploit.db but Empire already has a modified script and we can use that.
Add the following line of code at the end of MS16-032 script and edit it according to your need.
Github link:
Github Link :