nessusCreator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

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

func (c *Creator) IngestPipeline(moveFiles bool) error

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

Jump to

Keyboard shortcuts

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