Hack the Pluck VM (CTF Challenge)

Coming towards another tutorial of vulnhub’s lab challenges “pluck” you can download it from here.

This lab is quite simple this article may help you to solve the task for capturing the flag.

Let,s Start

192.168.1.115 is my target IP let enumerate through aggressive scan using NMAP. You can observe its result from the given screenshot.

Use Nikto to dig up more information related to the target

 Finally, I have got something very remarkable here if you notice the given below image the highlighted text looks like local file inclusion vulnerability.

So when I explore the above-highlighted text in the browser here I got more than enough data. The highlighted text denotes towards some kind of backup script file path.

When again I walk around it now further I found a tar file for backup.

A download tar file of backup script, type following command inside the terminal of your Kali Linux.

Now type the following command to extract the backup.tar file

Inside it, I found the home folder which further contains a subfolder for 3 users.

Among all 3 users only paul has keys

So here I found 6 keys, let use one of them for connection.

When you will try to connect with the target using ssh simultaneously a new terminal “Pdmenu” will pop up. Here I got so many options but I choose Edit file option that gave me a prompt to edit any file and it looks like command injection vulnerability.

Now load Metasploit framework and type following

Now copy the generated command php….5tz’));” and send it to target

Now paste above command as shown in the screenshot and hit enter which will give you reverse connection at the background inside Metasploit.

Great!!! We have got victim’s meterpreter session

 Now use Dirty cow exploit

Here got the path to download exploit which might be related to it.

Open this path “//www.exploit-db.com/download/40616” in the browser and downloads the exploit for dirty cow vulnerability. I have saved this exploit as raj.

Now type the following command to compile your exploit so that it can run successfully inside your Kali Linux.

Now we can run our exploit to achieve root permission and try to capture the flag

 Bravo!!! We have captured the flag.

Author: Aarti Singh is a Researcher and Technical Writer at Hacking Articles an Information Security Consultant Social Media Lover and Gadgets. Contact here

Leave a Reply

Your email address will not be published. Required fields are marked *