Documentation ¶
Overview ¶
Package nessusCreator uses Tenable's Nessus 6 API to automate scan creation via files.
The Ingest Pipeline represents the method which should be used when interacting with this package. It will process each file within a given directory, generate a scan if it can, launch the scan, and then store the scan UUID for results processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
Creator is used in the file to scan pipeline to import the scan files, convert them into a form usable by Nessus, and then create and launch the scan.
func NewCreator ¶
func NewCreator(baseDirectory string, client *nessusAPI.Client, httpClient *http.Client, sqliteDB *sql.DB, debug bool) *Creator
NewCreator creates a new Nessus Creator object for use in creating an automated scan pipeline
func (*Creator) IngestPipeline ¶
IngestPipeline is used to run the creator's ingest pipeline. The ingest pipeline will take all the files in the creator's file location's incoming directory, process them for valid .json, .xml, or .txt requested scan files , create a scan within Nessus, and then launch the scan.
type RequestedScan ¶
type RequestedScan struct { Method string `json:"method" xml:"method"` RequestID string `json:"request_id" xml:"request_id"` TargetIPs []string `json:"target_ips" xml:"target_ips"` }
RequestedScan holds the information from when the scan was requested
type ScanData ¶
type ScanData struct { RequestedScan RequestedScan CreateScanJSON nessusAPI.CreateScan CreatedScan nessusAPI.CreateScanResponse LaunchedScan nessusAPI.LaunchedScan ScanStartTime string }
ScanData holds the information about a scan throughout the pipeline