report

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package report provides HTML report generation for pentest campaigns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHTML

func GenerateHTML(input ReportInput) (string, error)

GenerateHTML renders a pentest report as an HTML document.

Types

type CampaignData

type CampaignData struct {
	Name          string
	Description   string
	ClientName    string
	ClientContact string
	Type          string
	Priority      string
	Status        string
	StartDate     string
	EndDate       string
	Methodology   string
	Team          []TeamMemberData
}

CampaignData represents campaign data for report rendering.

type FindingData

type FindingData struct {
	Number      string
	Title       string
	Severity    string
	Status      string
	CVSSScore   float64
	CVSSVector  string
	CWE         string
	CVE         string
	OWASP       string
	Description string
	Steps       []string
	POC         string
	Impact      string
	TechImpact  string
	Remediation string
	References  []string
	Targets     []string
	AssignedTo  string
	CreatedAt   time.Time
}

FindingData represents a finding for report rendering.

type ReportInput

type ReportInput struct {
	Campaign        CampaignData
	Findings        []FindingData
	Stats           StatsData
	GeneratedAt     time.Time
	Classification  string
	Watermark       string
	ReportType      string
	IncludePOC      bool
	IncludeEvidence bool
}

ReportInput contains all data needed to generate a report.

type StatsData

type StatsData struct {
	Total    int64
	Critical int64
	High     int64
	Medium   int64
	Low      int64
	Info     int64
	Progress float64
	AvgCVSS  float64
	MaxCVSS  float64
}

StatsData represents campaign statistics for report rendering.

type TeamMemberData

type TeamMemberData struct {
	Name  string
	Email string
	Role  string
}

TeamMemberData represents a team member for report rendering.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL