Post

DC 7

Description ⤵️

💡 DC-7 is another purposely built vulnerable lab with the intent of gaining experience in the world of penetration testing.
While this is not an overly technical challenge, it is not exactly easy.
While it is kind of a logical progression from an earlier DC release (I would not tell you which one), there are some new concepts involved, but you will need to figure those out for yourself. :-) If you need to resort to brute forcing or dictionary attacks, you probably would not succeed.
What you will need to do, is to think “outside” of the box.
Waaaaaay “outside” of the box. :-)
The ultimate goal of this challenge is to get root and to read the one and only flag.
Linux skills and familiarity with the Linux command line are a must, as is some experience with basic penetration testing tools.
For beginners, Google can be of great assistance, but you can always tweet me at @DCAU7 for assistance to get you going again. But take note: I would not give you the answer, instead, I’ll give you an idea about how to move forward.
TECHNICAL INFORMATION
DC-7 is a VirtualBox VM built on Debian 64 bit, but there should not be any issues running it on most PCs.
I have tested this on VMWare Player, but if there are any issues running this VM in VMware, have a read through of this.
It is currently configured for Bridged Networking, however, this can be changed to suit your requirements. Networking is configured for DHCP.
Installation is simple - download it, unzip it, and then import it into VirtualBox or VMWare and away you go.
IMPORTANT
While there should be no problems using this VM, by downloading it, you accept full responsibility for any unintentional damage that this VM may cause.
In saying that, there should not be any problems, but I feel the need to throw this out there just in case.
CONTACT
I’m also very interested in hearing how people go about solving these challenges, so if you’re up for writing a , please do so and send me a link, or alternatively, follow me on Twitter, and DM me (you can unfollow after you’ve DM’d me if you’d prefer).
I can be contacted via Twitter - @DCAU7

Let’s find the IP Address first »

161-1.png

1
IP →  10.0.2.13

Port Scan Results ➡️

161-2.png

1
2
3
OPEN PORTS >
22   SSH
80   HTTP

Web Enumeration ⤵️

161-3.png

161-4.png

161-5.png

Lets look into it on web →

On web →

161-6.png

161-7.png

161-8.png

161-9.png

1
dc7user : MdR3xOgB7#dW

Now lets try SSH login →


SHELL ➡️

161-10.png

Lets dig deeper inside the shell →

161-11.png

I also found something in mail →

161-12.png

161-13.png

from above script og sql-dump when I enum futher on web I got this →

161-14.png

Now lets try it out →

161-15.png

Now lets login using this ⬆️ credentials →

161-16.png

Now I am admin so lets find a way to get the shell →

For enabling for reverse shell I need to follow certain steps →

Manage>Extend>List>Install new module

161-17.png

161-18.png

161-19.png

Now →

Manage > Extend > filter

161-20.png

Then click Install →

Now reverse shell upload time →

161-21.png

As I clicked on preview or save button my nc triggered →

161-22.png

Now I uploaded again a shell for root →

161-23.png

161-24.png

lets wait and see the results as →

161-25.png

161-26.png


Summery Notes ➡️

→ Very Interesting machine in terms of OSINT

→ and the reverse shell upload process for drupal is from web.

→ then rest all about keen eyes for commands / code / directions /permissions.

If you have any questions or suggestions, please leave a comment below. Thank You !

This post is licensed under CC BY 4.0 by the author.