Bastard - Medium
OSCP Prep Box

Introduction@Bastard:~$
Enumeration
Nmap
Only three ports were opened.
Web

Port 80 is running Drupal CMS. We should know that drupal has a lot of vulnerabilities and first we need to know what version of this to find the exploit. We can look up drupal version at CHANGELOG.txt
We can see that drupal is running at version 7.54 .
Finding Exploit

There is a lot of exploits and I chose python script. So we can easily run it.
We can look up OS architecture with this command.
This is 64 bit machine .Now let try to get reverse shell.
Getting Reverse Shell
First I upload nc.exe to the victim machine.

Privilege Escalation
systeminfo
Run exploit suggester (didn't show in here) and you will see there is a couple of exploit and I chose this ms15051x64.exe.
Download and transfer to the victim machine like above.
We can execute the command as a system. Now we should try to get system shell.


Reference
Last updated