Giter Site home page Giter Site logo

busirus / pyqt5-pdfinjector-tool Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 8.0 23 KB

This Python app allows users to inject malicious payloads into PDF files through a GUI. It supports three injection methods: URL, file, and JavaScript. Users select the input and output PDF files, choose a payload, and the app creates a new PDF with the payload injected. Pre-defined JavaScript payloads are also available.

Python 100.00%

pyqt5-pdfinjector-tool's Introduction

PyQt5 PDF Injector V1.0

Introduction

This Python app allows users to inject malicious payloads into PDF files through a GUI. It supports three injection methods: URL, file, and JavaScript. Users select the input and output PDF files, choose a payload, and the app creates a new PDF with the payload injected. Pre-defined JavaScript payloads are also available.

DISCLAIMER

This tool is for educational purposes only. Do not use it for any illegal activities. The author is not responsible for any misuse of this tool.

Installation

  1. Clone the repository or download the zip file.
git clone https://github.com/busirus/PyQt5-PDFInjector.git
  1. Install the required libraries by running the following command in the terminal:
pip install -r requirements.txt
  1. Run the program by executing the following command:
python main.py 

Usage

  1. Run the application by running python main.py
  2. Select the input PDF file, the output PDF file, and the injection method (URL, file, or JavaScript)
  3. If using the URL injection method, enter the malicious URL in the provided field
  4. If using the file injection method, select the file to be injected in the provided field
  5. If using the JavaScript injection method, enter the JavaScript code or file path in the provided field
  6. Click the "Inject" button to create the new PDF file with the payload injected

Pre-defined Payloads

The application includes pre-defined JavaScript payloads that can be added by clicking the "Add Payload" button. These payloads include:

Alert Box: Displays an alert box with a message when the PDF is opened.

Denial of Service (DoS): Creates an infinite loop of alert boxes, causing a denial of service attack.

Print Dialog: Opens the print dialog when the PDF is opened.

Open Website: Opens a specified website when the PDF is opened.

Download File: Downloads a specified file when the PDF is opened.

Remote Code Execution (RCE): Executes a specified command on the user's machine and sends the output to a remote server.

Reverse Shell: Opens a reverse shell on the user's machine and sends the output to a remote server.

Remote Access: Sends a specified command to a remote server and receives the output.

Keylogger: Records keystrokes and sends them to a remote server.

Execute Remote JavaScript: Executes a remote JavaScript file.

Clipboard Data Exfiltration: Reads clipboard data and sends it to a remote server.

Webcam Access: Accesses the user's webcam and displays the video.

Screen Capture: Captures the user's screen and sends the screenshot to a remote server.

Get Geolocation: Retrieves the user's geolocation and sends it to a remote server.

List Stored Cookies: Retrieves and sends a list of stored cookies to a remote server.

List Stored Credentials: Retrieves and displays a list of stored credentials.

Get Stored Credentials: Retrieves and displays stored credentials.

Get Browser History: Retrieves and displays the user's browser history.

Get Wifi Passwords: Retrieves and displays the user's saved Wi-Fi passwords.

Play Sound: Plays a specified sound when the PDF is opened.

License

This project is licensed under the MIT License

pyqt5-pdfinjector-tool's People

Contributors

busirus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.