Skip to content

release-v2.0.6

Choose a tag to compare

@Enz0L Enz0L released this 20 Jan 18:22
· 12 commits to main since this release

Release Notes - MailSecWatcher v2.0.5 & .6

📄 New Feature: HTML Report Generation

Summary

Added ability to generate beautiful, customizable HTML reports using the -o html option. Reports are generated with timestamped filenames and support full branding customization via YAML configuration.

Usage

python mailsecw.py -d example.com -o html

This generates a file like output/example.com_20260116_143052.html

Features

Jinja2 Templating

  • Modern, responsive HTML template
  • Clean design with professional styling
  • Print-friendly layout

YAML Configuration (config/report_config.yaml)

  • Customizable logo (URL or local path)
  • Company name and footer text
  • Full color palette customization
  • Output directory and filename format

Design Highlights

  • Modern 2026 design aesthetic
  • Gradient headers and subtle shadows
  • Protocol cards with hover effects
  • Color-coded recommendations by priority
  • Responsive layout for all screen sizes

Configuration Example

branding:
  logo_url: "https://example.com/logo.png"
  company_name: "My Company"
  footer_text: "Security Report by My Company"

colors:
  primary: "#1d3557"
  secondary: "#457b9d"
  accent: "#a8dadc"
  background: "#f1faee"
  danger: "#e63946"

output:
  directory: "output"
  filename_format: "{domain}_{date}_{time}.html"

New Files

  • templates/report.html - Jinja2 HTML template
  • config/report_config.yaml - User configuration file
  • output/ - Directory for generated reports (auto-created)

Code Changes

New Dependencies

  • jinja2 - Template engine
  • pyyaml - YAML configuration parsing

mailsecw.py Modifications

  • Added -o/--output CLI argument (choices: html)
  • Added load_report_config() function
  • Added generate_html_report() function
  • Modified main() to call report generation when requested

Benefits

✅ Professional reports - Share results with stakeholders
✅ Full customization - Brand reports with your logo and colors
✅ No external dependencies - Self-contained HTML files
✅ Print-ready - Optimized for PDF export via browser print


Release Date: 2026-01-16
Version: v2.0.5
Type: New Feature