Documentation
¶
Overview ¶
Credit for the base of the XML structs goes to Tom Steele / Lair Framework these have been expanded upon with missing elements and restructured to be easier to work with. https://github.com/lair-framework/go-nessus/blob/master/nessus.go
This file contains the raw Nessus XML format used for parsing a Nessus export.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Severities = []string{
"Informational",
"Low",
"Medium",
"High",
"Critical",
}
Functions ¶
This section is empty.
Types ¶
type Compliance ¶
type Compliance struct {
Total int
Passed int
Warning int
Failed int
Other int
Audits map[string]Audit
}
Compliance represents the compliance benchmark run against a single host and includes metadata about the compliance status as a whole along.
type Control ¶
type Control struct {
ID string
Name string
Status string
ActualValue string
Description string
Result string
Solution string
AuditFile string
}
Control stores the result for a single benchmark control.
type Host ¶
type Host struct {
Name string
IP string
OperatingSystem string
Compliance Compliance
Issues []Issue
Services []Service
}
Host represents an instance of a single Host with information collated from plugins and meta tags where possible.
type HostMetadata ¶
HostMetadata describes a single ReportHost
type Metadata ¶
type Metadata struct {
PolicyName string
Name string
RunBy string
Description string
Timing Timing
}
Metadata contains data extracted from top-level nessus file elements about the scan.