nessus

package
v0.0.0-...-40b73c6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	Hosts                map[string]ReportHost
	CountMatchedHosts    int
	CountMatchedPorts    int
	CountMatchedFindings int
	AllPlugins           []Plugin
}

Collection is a map which maps an IP to an associated Report host.

func Parse

func Parse(in string) (*Collection, error)

Parse will walk through a dir or a file and process (dir: all .nessus files) ReportHosts with their associated data will be assigned to a collections map The Collection will be returned so it can be worked on

type Finding

type Finding struct {
	PluginID    string
	PluginName  string
	Severity    string
	Description string
	Output      string
}

Finding represents a finding

type Plugin

type Plugin struct {
	ID       string
	Name     string
	Severity string
}

Plugin will hold data of a single plugin

type Port

type Port struct {
	Number   string
	Protocol string
}

Port represents a port.

type ReportHost

type ReportHost struct {
	IP       string
	FQDN     string
	Findings map[string][]Finding
}

ReportHost represents a single scanned IP with FQDN It has a map which associates a Port (tcp/445) to a slice of findings.

Jump to

Keyboard shortcuts

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