hackthebox
tutorials
Devel
CTF
hacking
easy
The Devel box was also simple windows box in which we find FTP listening o port 21 which has anonymous login allowed that allows us to put file on the server. The ftp files were on hosted by web service IIS 7 port 80. We place a aspx shell through ftp get RCE then do privesc on windows 7 box with MS15-051.
we will run a nmap scan to find all the open ports on the sever, to do run the following command.
which get us the following output,
we see FTP and Web Server on port 80 is open. Since anonymous login is allowed on ftp lets start from there.
Using the ftp command, we login with username anonymous and password anything to view the files.
Since we have write permissions on the server, (can be test by uploading any file on it with put
command), lets upload a aspx shell to get RCE.
which gave us, the RCE as follows
Upgraded the RCE to a full meterpreter shell with hat manual exploit. found this from systeminfo
Ran Sherlock.ps1 to find relevant exploits, found MS15-051 to be working to give root exploit. Used binary available from here . Which gave us the system shell.