Rapid7 Vulnerability & Exploit Database

BADPDF Malicious PDF Creator

Back to Search

BADPDF Malicious PDF Creator



This module can either creates a blank PDF file which contains a UNC link which can be used to capture NetNTLM credentials, or if the PDFINJECT option is used it will inject the necessary code into an existing PDF document if possible.


  • Assaf Baharav
  • Yaron Fruchtmann
  • Ido Solomon
  • Richard Davy - secureyourit.co.uk




Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/fileformat/badpdf
msf auxiliary(badpdf) > show actions
msf auxiliary(badpdf) > set ACTION < action-name >
msf auxiliary(badpdf) > show options
    ...show and set options...
msf auxiliary(badpdf) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security