Bastard - Medium

OSCP Prep Box

Introduction@Bastard:~$

IP

10.10.10.9

Os

Window

Points

30

Difficulty

Medium

Creator

Release Date

19 March 2017

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.

https://github.com/pimps/CVE-2018-7600

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.

https://www.exploit-db.com/exploits/37049

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.

https://app.hackthebox.com/profile/237587

Reference

https://github.com/pimps/CVE-2018-7600

https://www.exploit-db.com/exploits/37049

Last updated