Skip to content

Universal PDF Dropper: Full-Page Link Injection for Modern Browsers

Notifications You must be signed in to change notification settings

HARZE12/PDFdropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Universal PDF Dropper: Full-Page Link Injection for Modern Browsers

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.

๐Ÿš€ Features

  • Full-Page Injection: Invisible /URI annotation 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.

๐Ÿ“‹ Prerequisites

  • Python 3.6+
  • venv or virtualenv
  • A safe base PDF (original.pdf)

๐Ÿ› ๏ธ Installation

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.pdf

๐Ÿ”ง Usage

Run 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.exe

Example

Inject 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.com

Open *-linked.pdf in any PDF viewerโ€”click anywhere to navigate to your URL.

About

Universal PDF Dropper: Full-Page Link Injection for Modern Browsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages