{"id":20292521,"url":"https://github.com/mauricelambert/maliciouspdf","last_synced_at":"2025-09-22T17:31:49.235Z","repository":{"id":65213336,"uuid":"587417385","full_name":"mauricelambert/MaliciousPDF","owner":"mauricelambert","description":"This file implements a library and tool to make malicious PDF files.","archived":false,"fork":false,"pushed_at":"2023-01-10T17:51:29.000Z","size":30,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T15:17:36.520Z","etag":null,"topics":["malicious","package","pdf","phishing","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-10T17:49:58.000Z","updated_at":"2024-11-04T00:35:50.000Z","dependencies_parsed_at":"2023-01-15T15:15:19.604Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/MaliciousPDF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FMaliciousPDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FMaliciousPDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FMaliciousPDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FMaliciousPDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/MaliciousPDF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233869023,"owners_count":18743094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["malicious","package","pdf","phishing","python3"],"created_at":"2024-11-14T15:17:37.933Z","updated_at":"2025-09-22T17:31:48.836Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fmaliciouspdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fmaliciouspdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fmaliciouspdf/lists"}