For educational purposes only. ๐
Inject a full-page, invisible link into any PDF so that clicking anywhere in the document opens your chosen URLโno Acrobat-only JavaScript required.
- Full-Page Injection: Invisible
/URIannotation across the entire page. - Cross-Viewer Support: Compatible with Chrome, Firefox, Preview, Acrobat, etc.
- Pure Python: Uses
pypdf, no JS or Acrobat plugins. - CLI: Quick one-liner to craft your dropper.
- Python 3.6+
venvorvirtualenv- A safe base PDF (
original.pdf)
git clone https://github.com/harze12/pdfdropper.git
cd PDFdropper
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate.ps1
pip install -r requirements.txt
cp /path/to/your.pdf original.pdfRun the CLI tool with the following options:
-f: Path to the input PDF (e.g., original.pdf).
-o: Path for the output PDF (e.g., exploit.pdf).
-url: The target URL to inject (e.g., http://your-server/payload.exe).
python pdfdropper.py -f original.pdf -o exploit.pdf -url http://your-server/payload.exeInject a full-page link into report.pdf that points to https://example.com:
python pdfdropper.py -f report.pdf -o report_linked.pdf -url https://example.comOpen *-linked.pdf in any PDF viewerโclick anywhere to navigate to your URL.