pentest-report-generator
This tool allows you to generate a professional-looking Penetration Testing Report from a simple Markdown file, applying a clean HTML template, and exporting to both HTML and PDF formats.
This tool was created following the KISS (Keep It Simple, Stupid) principle.
- Minimal setup.
- Minimal dependencies.
- Maximum portability.
- Designed for security consultants and pentesters who want a fast, clean way to generate reports without complicated setups or online tools.
report.md— Write your report content here (Markdown format).template.html— HTML template for styling the report.generate_report.py— Script to generate the report.requirements.txt— Python packages required (for uv pip).img/logo.png— Logo displayed on the title page.run.sh— Script to setup environment and generate report.
First, install uv if you don't have it:
pipx install uv(uv is a fast tool for managing virtual environments and Python packages.)
-
Clone or unzip this project.
-
Navigate into the project folder:
cd pentest-report-generator- Run the generation script:
./run.shThis will:
- Create a virtual environment (
.venv/) - Install necessary Python packages
- Generate your report in both HTML and PDF format
After running the script, two files will be created in the project folder:
final_report.html— Web version of your reportfinal_report.pdf— Printable PDF version of your report
-
Add your findings and text inside
report.md. -
If you want to add images (e.g., screenshots), place them in the
img/folder and reference them in your Markdown like this:
-
Images automatically resize to fit the PDF page correctly.
You can treat the pentest-report-generator folder as a temporary working folder for each pentest engagement:
- Copy the entire folder for each new engagement.
- Use it to store notes, screenshots, drafts, evidence, etc.
- Edit
report.mdas you progress through the assessment. - Generate the final report easily with one command.
- Securely wipe the folder after the engagement is completed and the report is delivered.
✅ This encourages structured work, clear documentation, and easy cleanup.
Feel free to use, modify, and adapt for personal or professional purposes.