Documentation ¶
Index ¶
- func CombineReports(filePath []string) (string, error)
- func ListIssues(filePath string) ([]string, error)
- func RemoveDuplicates(elements []string) []string
- func RemoveHosts(filePath string, hosts []string) (string, error)
- func RemoveIssues(filePath string, issues []string) (string, error)
- func RemoveIssuesContains(filePath string, issues []string) (string, error)
- func SslIssues(filePath string, writeToFile bool, Hosts []Host) error
- func Summary(filePath string, writeToFile bool, Hosts []Host) error
- func TempFileName() string
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineReports ¶
CombineReports adds issues from a list of nessus reports to a copy of the first report. The new report has a randomly generated name and all the meta data associated with the first report that was passed to the function. The new report will be saved in the current directory.
func ListIssues ¶
ListIssues lists all issues in a collection of Nessus reports by name and ID
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate entries from a string slice
func RemoveHosts ¶
RemoveHosts removes a host and all associated issues from a nessus file.
func RemoveIssues ¶
RemoveIssues removes all issues from a nessus file with the specified pluginName
func RemoveIssuesContains ¶
RemoveIssuesContains removes all issues from a nessus file where the plugin name contians the supplied strings
func SslIssues ¶
SslIssues lists findings by issue and only the findings with ID's in the issueID's slice.
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host model is used for storing nessus issues associated with a specific host
func HostListBuilder ¶
HostListBuilder creates a list of Host objects and populates them with findings from the supplied reports
func SearchIssues ¶
SearchIssues collects all issues and output from a nessus report, prunes repreating information and presents output to a user based on a specific search term.
func (Host) RemoveDuplicateIssues ¶
RemoveDuplicateIssues remoevs duplicate issues from the issues []string of a specific host.