![MaliciousPDF logo](https://mauricelambert.github.io/info/python/security/MaliciousPDF_small.png "MaliciousPDF logo")
# 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/).
Raw data
{
"_id": null,
"home_page": "https://github.com/mauricelambert/MaliciousPDF",
"name": "MaliciousPDF",
"maintainer": "Maurice Lambert",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "mauricelambert434@gmail.com",
"keywords": "Malicious,PDF,Portable Document Format,ISO 32000,Phishing,Exploit,Malware,Security",
"author": "Maurice Lambert",
"author_email": "mauricelambert434@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/29/3e/9910b1cc8128e07e214fa89c4d723aa82ada8d7f14d62034de80d9e9ec9a/MaliciousPDF-0.0.1.tar.gz",
"platform": "Windows",
"description": "![MaliciousPDF logo](https://mauricelambert.github.io/info/python/security/MaliciousPDF_small.png \"MaliciousPDF logo\")\n\n# MaliciousPDF\n\n## Description\n\nThis file implements a library and tool to make malicious PDF files.\n\n## Requirements\n\nThis package require :\n - python3\n - python3 Standard Library\n\n## Installation\n```bash\npip install MaliciousPDF\n```\n\n## Usages\n\n### Command line\n\n```bash\npython3 MaliciousPDF.py --help\npython3 MaliciousPDF.py\npython3 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'\n```\n\n### Python script\n\n```python\nfrom MaliciousPDF import *\ninit_obfuscation()\nfile, catalog, outlines, pages, page = pdf_bases(\"js_alert_test_obfuscation.pdf\")\n\nadd_text(\n page,\n \" - Hello.\\n - Hi !\\n - How are you ?\\n - Fine.\",\n (100, 700),\n)\n\nMaliciousJsFile(\n catalog, StringIO(javascript_obfuscation(\"app.alert('Test');\"))\n)\n\npdf_obfuscation(file)\n```\n\n## Links\n\n - [Github Page](https://github.com/mauricelambert/MaliciousPDF/)\n - [Documentation](https://mauricelambert.github.io/info/python/security/MaliciousPDF.html)\n - [Pypi package](https://pypi.org/project/MaliciousPDF/)\n - [Executable](https://mauricelambert.github.io/info/python/security/MaliciousPDF.pyz)\n\n## Licence\n\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\n",
"bugtrack_url": null,
"license": "GPL-3.0 License",
"summary": "This file implements a library and a tool to make malicious PDF files",
"version": "0.0.1",
"split_keywords": [
"malicious",
"pdf",
"portable document format",
"iso 32000",
"phishing",
"exploit",
"malware",
"security"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "293e9910b1cc8128e07e214fa89c4d723aa82ada8d7f14d62034de80d9e9ec9a",
"md5": "ebeabaa299db0dff6af56241d4e540ef",
"sha256": "d910baa625d45d4088fbb5782f1a3eeaa6733abefaeea7ded0c35348d6cc50a7"
},
"downloads": -1,
"filename": "MaliciousPDF-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "ebeabaa299db0dff6af56241d4e540ef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 26160,
"upload_time": "2023-01-12T09:07:54",
"upload_time_iso_8601": "2023-01-12T09:07:54.525197Z",
"url": "https://files.pythonhosted.org/packages/29/3e/9910b1cc8128e07e214fa89c4d723aa82ada8d7f14d62034de80d9e9ec9a/MaliciousPDF-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-12 09:07:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "mauricelambert",
"github_project": "MaliciousPDF",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "maliciouspdf"
}