https://github.com/mauricelambert/maliciouspdf
This file implements a library and tool to make malicious PDF files.
https://github.com/mauricelambert/maliciouspdf
malicious package pdf phishing python3
Last synced: 5 months ago
JSON representation
This file implements a library and tool to make malicious PDF files.
- Host: GitHub
- URL: https://github.com/mauricelambert/maliciouspdf
- Owner: mauricelambert
- License: gpl-3.0
- Created: 2023-01-10T17:49:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T17:51:29.000Z (over 2 years ago)
- Last Synced: 2024-11-14T15:17:36.520Z (7 months ago)
- Topics: malicious, package, pdf, phishing, python3
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

# MaliciousPDF
## Description
This file implements a library and tool to make malicious PDF files.
## Requirements
This package require :
- python3
- python3 Standard Library## Installation
```bash
pip install MaliciousPDF
```## Usages
### Command line
```bash
python3 MaliciousPDF.py --help
python3 MaliciousPDF.py
python3 MaliciousPDF.py -f 'test.pdf' -t 'JS' -p 'app.alert("test");' -b 'My body' -T 'My title' -o -v '1.7' -a 'MyName' -d '2016-06-22 16:53:45' -i 'Title' -P 'Not MaliciousPDF'
```### Python script
```python
from MaliciousPDF import *
init_obfuscation()
file, catalog, outlines, pages, page = pdf_bases("js_alert_test_obfuscation.pdf")add_text(
page,
" - Hello.\n - Hi !\n - How are you ?\n - Fine.",
(100, 700),
)MaliciousJsFile(
catalog, StringIO(javascript_obfuscation("app.alert('Test');"))
)pdf_obfuscation(file)
```## Links
- [Github Page](https://github.com/mauricelambert/MaliciousPDF/)
- [Documentation](https://mauricelambert.github.io/info/python/security/MaliciousPDF.html)
- [Pypi package](https://pypi.org/project/MaliciousPDF/)
- [Executable](https://mauricelambert.github.io/info/python/security/MaliciousPDF.pyz)## Licence
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).