/PDFScript

Python script for injecting JS payload into PDF files

Primary LanguagePythonMIT LicenseMIT

PDFScript

Injecting javascript payload into pdf files

A usefull script for injecting js code into innocent pdf file, using pypdf library.

Features:

This script will open the input file and the payload, and creates a new combind fil.

requirnemts:

pip install pypdf

Use

'payload.js' is the payload file

'installation.pdf' is the PDF file you want to inject

python PDFScript.py -i installation.pdf -p payload.js