Documentation
¶
Overview ¶
Package nessus parses Nessus XML data into a similary formed struct.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostProperties ¶
type HostProperties struct {
Tags []Tag `xml:"tag"`
}
HostProperties are tags filled with likely useless information.
type NessusData ¶
type NessusData struct {
Report Report `xml:"Report"`
}
NessusData contains a nessus report.
func Parse ¶
func Parse(content []byte) (*NessusData, error)
Parse takes a byte array of nessus xml data and unmarshals it into an NessusData struct. All elements are returned as strings, it is up to the caller to check and cast them to the proper type.
type Report ¶
type Report struct {
Name string `xml:"name,attr"`
ReportHosts []ReportHost `xml:"ReportHost"`
}
Report has a name and contains all the host details.
type ReportHost ¶
type ReportHost struct {
Name string `xml:"name,attr"`
HostProperties HostProperties `xml:"HostProperties"`
ReportItems []ReportItem `xml:"ReportItem"`
}
ReportHost containts the hostname or ip address for the host and all vulnerability and service information.
type ReportItem ¶
type ReportItem struct {
Port int `xml:"port,attr"`
SvcName string `xml:"svc_name,attr"`
Protocol string `xml:"protocol,attr"`
Severity int `xml:"severity,attr"`
PluginID string `xml:"pluginID,attr"`
PluginName string `xml:"pluginName,attr"`
PluginFamily string `xml:"pluginFamily,attr"`
PluginType string `xml:"plugin_type,name"`
PluginVersion string `xml:"plugin_version"`
Fname string `xml:"fname,name"`
RiskFactor string `xml:"risk_factor,name"`
Synopsis string `xml:"synopsis,name"`
Description string `xml:"description,name"`
Solution string `xml:"solution,name"`
PluginOutput string `xml:"plugin_output,name"`
SeeAlso string `xml:"see_also,name"`
CVE []string `xml:"cve,name"`
BID []string `xml:"bid,name"`
XREF []string `xml:"xref,name"`
PluginModificationDate string `xml:"plugin_modification_date,name"`
PluginPublicationDate string `xml:"plugin_publication_date,name"`
VulnPublicationDate string `xml:"vuln_publication_date,name"`
ExploitabilityEase string `xml:"exploitability_ease,name"`
ExploitAvailable bool `xml:"exploit_available,name"`
ExploitFrameworkCanvas bool `xml:"exploit_framework_canvas,name"`
ExploitFrameworkMetasploit bool `xml:"exploit_framework_metasploit,name"`
ExploitFrameworkCore bool `xml:"exploit_framework_core,name"`
MetasploitName string `xml:"metasploit_name,name"`
CanvasPackage string `xml:"canvas_package,name"`
CoreName string `xml:"core_name,name"`
CVSSVector string `xml:"cvss_vector,name"`
CVSSBaseScore float64 `xml:"cvss_base_score,name"`
CVSSTemporalScore string `xml:"cvss_temporal_score,name"`
ComplianceResult string `xml:"cm:compliance-result,name"`
ComplianceActualValue string `xml:"cm:compliance-actual-value,name"`
ComplianceCheckID string `xml:"cm:compliance-check-id,name"`
ComplianceAuditFile string `xml:"cm:compliance-audit-file,name"`
ComplianceCheckValue string `xml:"cm:compliance-check-name,name"`
}
ReportItem is vulnerability plugin output.
Click to show internal directories.
Click to hide internal directories.