nessusTools

package
v0.0.0-...-4c40040 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineReports

func CombineReports(filePath []string) (string, error)

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

func ListIssues(filePath string) ([]string, error)

ListIssues lists all issues in a collection of Nessus reports by name and ID

func RemoveDuplicates

func RemoveDuplicates(elements []string) []string

RemoveDuplicates removes duplicate entries from a string slice

func RemoveHosts

func RemoveHosts(filePath string, hosts []string) (string, error)

RemoveHosts removes a host and all associated issues from a nessus file.

func RemoveIssues

func RemoveIssues(filePath string, issues []string) (string, error)

RemoveIssues removes all issues from a nessus file with the specified pluginName

func RemoveIssuesContains

func RemoveIssuesContains(filePath string, issues []string) (string, error)

RemoveIssuesContains removes all issues from a nessus file where the plugin name contians the supplied strings

func SslIssues

func SslIssues(filePath string, writeToFile bool, Hosts []Host) error

SslIssues lists findings by issue and only the findings with ID's in the issueID's slice.

func Summary

func Summary(filePath string, writeToFile bool, Hosts []Host) error

Summary prints a list of issues from the supplied reports with associated ID's and open ports

func TempFileName

func TempFileName() string

TempFileName generates a random file name

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 Ciphers

func Ciphers(filePath string, writeToFile bool, Hosts []Host) ([]Host, error)

Ciphers combines a bunch of issues into output in either the terminal or a file

func HostListBuilder

func HostListBuilder(filePath string, writeToFile bool) ([]Host, error)

HostListBuilder creates a list of Host objects and populates them with findings from the supplied reports

func SearchIssues

func SearchIssues(filePath string, search string, writeToFile bool, Hosts []Host) ([]Host, error)

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

func (h Host) RemoveDuplicateIssues() Host

RemoveDuplicateIssues remoevs duplicate issues from the issues []string of a specific host.

Jump to

Keyboard shortcuts

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