Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathis2001/jsembed
Simple Python tool to embed JavaScript code in different types of files (pdf and svg for now)
https://github.com/mathis2001/jsembed
bugbounty fileupload javascript pdf pentest svg xss
Last synced: 4 days ago
JSON representation
Simple Python tool to embed JavaScript code in different types of files (pdf and svg for now)
- Host: GitHub
- URL: https://github.com/mathis2001/jsembed
- Owner: mathis2001
- Created: 2024-01-05T15:35:36.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-05T16:43:59.000Z (11 months ago)
- Last Synced: 2024-01-06T16:44:02.314Z (10 months ago)
- Topics: bugbounty, fileupload, javascript, pdf, pentest, svg, xss
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSembed
Simple Python tool to embed JavaScript code in different types of files (pdf and svg for now)## Rerequisites
- PyPDF2
- re
- argparse## Install
```bash
$ git clone https://github.com/mathis2001/JSembed$ cd JSembed
$ python3 jsembed.py
```## Usage
```bash
$ python3 jsembed.py [--pdf path/to/input.pdf] [--svg path/to/input.svg] [--js path/to/input.js] [--output output.pdf or output.svg]
```## Options
```bash
options:
-h, --help show this help message and exit
-p PDF, --pdf PDF Path to the original PDF file
-s SVG, --svg SVG Path to the original SVG file
-j JS, --js JS Path to the JavaScript file to embed
-o OUTPUT, --output OUTPUT Output file name (.pdf or .svg)```
## Screenshots
![Usage](https://github.com/mathis2001/JSembed/assets/40497633/3d906be3-bf4a-4a26-b351-dbc8008648d7)
![PDF](https://github.com/mathis2001/JSembed/assets/40497633/01184dc9-b819-4abb-a668-17b44cabaf4c)
![SVG](https://github.com/mathis2001/JSembed/assets/40497633/8ea3e97a-6588-4d8f-bf34-03f4a05a9314)