Versions in this module Expand all Collapse all v1 v1.0.1 Jan 24, 2022 v1.0.0 Dec 18, 2021 Changes in this version + const ExportCSV + const ExportDB + const ExportHTML + const ExportNessus + const ExportPDF + const LaunchDaily + const LaunchMonthly + const LaunchOnDemand + const LaunchWeekly + const LaunchYearly + const NessusApiTokenPath + const Permissions0 + const Permissions128 + const Permissions16 + const Permissions32 + const Permissions64 + const UserTypeLDAP + const UserTypeLocal + var NessusAPITokenRegex = regexp.MustCompile("([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})") + type Acls struct + DisplayName string + ID int + Name string + ObjectType string + Owner int + Permissions int + Type string + type AgentGroup struct + CreationDate int64 + ID int64 + LastModificationDate int64 + Name string + Owner string + OwnerID int64 + Shared int + UserPerms int64 + type AuditCustomItem struct + Category string + File string + type CreatePolicyRequest struct + Audits PolicyAudits + Settings PolicySettings + UUID string + type CreatePolicyResp struct + PolicyID int64 + PolicyName string + type FamilyDetails struct + ID int64 + Name string + Plugins []Plugin + type Filter struct + Controls []FilterControls + Name string + Operators []string + ReadableName string + type FilterControls struct + Ooptions []string + ReadableRegex string + Regex string + Type string + type Folder struct + Custom int64 + DefaultTag int64 + ID int64 + Name string + Type string + UnreadCount int64 + type Group struct + ID int64 + Name string + Permissions int64 + UserCount int64 + type History struct + CreationDate int64 + HistoryID int64 + LastModificationDate int64 + OwnerID int64 + Status string + UUID string + type Host struct + Critical int64 + High int64 + HostID int64 + HostIdx int64 + Hostname string + Info int64 + Low int64 + Medium int64 + NumChecksConsidered int64 + Progress string + ScanProgressCurrent int64 + ScanProgressTotal int64 + Score int64 + TotalChecksConsidered int64 + type HostCompliance struct + Count int64 + HostID int64 + Hostname string + PluginFamily string + PluginID int64 + PluginName string + Severity int64 + SeverityIdx int64 + type HostVulnerability struct + Count int64 + HostID int64 + Hostname string + PluginFamily string + PluginID int64 + PluginName string + Severity int64 + SeverityIdx int64 + VulnIdx int64 + type ListScansResponse struct + Folders []Folder + Scans []Scan + Timestamp int64 + type Nessus interface + AgentGroups func() ([]AgentGroup, error) + AllPlugins func() (chan PluginDetails, error) + AuthCookie func() string + ConfigurePolicy func(id int64, policySettings CreatePolicyRequest) error + ConfigureScan func(scanID int64, scanSetting NewScanRequest) (*Scan, error) + CreateFolder func(name string) error + CreatePolicy func(policySettings CreatePolicyRequest) (CreatePolicyResp, error) + CreateScan func(newScanRequest NewScanRequest) (*Scan, error) + CreateUser func(username, password, userType, permissions, name, email string) (*User, error) + DeleteFolder func(folderID int64) error + DeletePolicy func(id int64) error + DeleteScan func(scanID int64) error + DeleteUser func(userID int) error + DownloadExport func(scanID, exportID int64) ([]byte, error) + EditFolder func(folderID int64, newName string) error + EditUser func(userID int, permissions, name, email string) (*User, error) + ExportFinished func(scanID, exportID int64) (bool, error) + ExportScan func(scanID, templateID int64, format string) (int64, error) + FamilyDetails func(ID int64) (*FamilyDetails, error) + Folders func() ([]Folder, error) + ListUsers func() ([]User, error) + Login func(username, password string) error + Logout func() error + NewScan func(editorTmplUUID, settingsName string, outputFolderID, policyID, scannerID int64, ...) (*Scan, error) + PauseScan func(scanID int64) error + Permissions func(objectType string, objectID int64) ([]Permission, error) + PluginDetails func(ID int64) (*PluginDetails, error) + PluginFamilies func() ([]PluginFamily, error) + Policies func() ([]Policy, error) + PolicyTemplates func() ([]Template, error) + Request func(method string, resource string, js interface{}, wantStatus []int) (resp *http.Response, err error) + ResumeScan func(scanID int64) error + ScanDetails func(scanID int64) (*ScanDetailsResp, error) + ScanTemplates func() ([]Template, error) + Scanners func() ([]Scanner, error) + Scans func() (*ListScansResponse, error) + ServerProperties func() (*ServerProperties, error) + ServerStatus func() (*ServerStatus, error) + Session func() (Session, error) + SetUserPassword func(userID int, password string) error + SetVerbose func(bool) + StartScan func(scanID int64) (string, error) + StopScan func(scanID int64) error + Timezones func() ([]TimeZone, error) + Upload func(filePath string) error + func NewFingerprintedNessus(apiURL string, certFingerprints []string) (Nessus, error) + func NewInsecureNessus(apiURL string) (Nessus, error) + func NewInsecureNessusWithAPICredentials(apiURL, accessKey, secretKey string) (Nessus, error) + func NewNessus(apiURL, caCertPath string) (Nessus, error) + type NewScanRequest struct + Settings ScanSettingsRequest + UUID string + type Note struct + Message string + Severity int64 + Title string + type Permission struct + ID int64 + Name string + Owner int64 + Permissions int64 + Type string + type Plugin struct + ID int64 + Name string + type PluginAttr struct + Name string + Val string + type PluginDetails struct + Attrs []PluginAttr + FamilyName string + type PluginFamilies struct + Families []PluginFamily + type PluginFamily struct + Count int64 + ID int64 + Name string + type PluginOutput struct + Hosts string + PluginOutput string + Ports []string + Severity int64 + type Policy struct + CreationDate int64 + Desc string + ID int64 + LastModificationDate int64 + Name string + NoTarget string + Owner string + OwnerID int64 + Shared int64 + TemplateUUID string + UserPerms int64 + Visibility string + type PolicyAudits struct + Custom interface{} + Feed interface{} + type PolicySettings struct + Acls []Acls + AllowPostScanEditing string + AuditTrail string + Description string + EnablePluginDebugging string + EnablePluginList string + IncludeKb string + LogWholeAttack string + Name string + SSHNetstatScanner string + StaggeredStartMins string + UnixfileanalysisDisableXdev string + UnixfileanalysisExcludePaths string + UnixfileanalysisFileExtensions string + UnixfileanalysisIncludePaths string + UnixfileanalysisMaxCumulativeSize string + UnixfileanalysisMaxDepth string + UnixfileanalysisMaxSize string + WmiNetstatScanner string + type Remediation struct + NumHosts int64 + NumVulns string + Remediation string + Value string + type Rule struct + Date string + Host string + ID int64 + Owner string + OwnerID int64 + PluginID int64 + Type string + type Scan struct + AttachReport int + AttachedReportMaximumSize int + AttachedReportType interface{} + ContainerID int + CreationDate int64 + CustomTargets string + DashboardFile interface{} + DefaultPermisssions int + Description string + Emails string + Enabled int + ID int64 + LastModificationDate int64 + LastScheduledRun string + LiveResults int + Migrated int + Name string + NotificationFilters interface{} + Owner string + OwnerID int + PolicyID int + RRules string + ScanTimeWindow int + ScannerID int + Shared int + Sms interface{} + StartTime string + TagID int + TimeZone string + Type string + UUID string + UseDashboard int + UserPermissions int64 + type ScanDetailsResp struct + CompHosts []Host + Compliance []Vulnerability + Filters []Filter + History []History + Hosts []Host + Info struct{ ... } + Notes []Note + NumCVEs int64 + NumHosts int64 + NumImpactedHosts int64 + NumRemediatedCVEs int64 + Remediations struct{ ... } + UUID string + Vulnerabilities []Vulnerability + type ScanSettingsRequest struct + Acls []Acls + AgentGroupID []string + Description string + Emails string + Enabled bool + FileTargets string + FilterType string + Filters []interface{} + FolderID int64 + Launch string + LaunchNow bool + Name string + PolicyID int64 + RRules string + ScanTimeWindow int64 + ScannerID int64 + StartTime string + TextTargets string + TimeZone string + UseDashboard string + type Scanner struct + EngineVersion string + ID int64 + LoadedPluginSet string + Name string + Owner string + Platform string + RegistrationCode string + ScanCount int64 + Status string + Type string + UUID string + type ServerProperties struct + Capabilities struct{ ... } + Enterprise bool + Expiration int64 + ExpirationTime int64 + Feed string + IdleTImeout int64 + LoadedPluginSet string + LoginBanner bool + NessusType string + NessusUIVersion string + Notifications []struct{ ... } + PluginSet string + ScannerBoottime int64 + ServerUUID string + ServerVersion string + Token string + type ServerStatus struct + MustDestroySession bool + Progress int64 + Status string + type Session struct + ContainerID int64 + Email string + Groups []string + ID int64 + LastLogin int64 + Name string + Perms int64 + Type string + Username string + type Template struct + CloudOnly bool + Desc string + IsAgent bool + MoreInfo string + Name string + SubscriptionOnly bool + Title string + UUID string + type TemplateDisplayGroup struct + Inputs []string + Name string + Sections []string + Title string + type TemplateFormInput struct + Default string + ID string + Label string + Options []string + Type string + type TemplateMode struct + Desc string + ID string + Name string + type TemplatePluginFamily struct + Count int64 + ID int64 + Status string + type TemplateSection struct + Inputs []string + Name string + Title string + type TimeZone struct + Name string + Val string + type User struct + Email string + ID int + LastLogin int + Name string + Permissions int + Type string + Username string + type Vulnerability struct + Count int64 + PluginFamily string + PluginID int64 + PluginName string + SeverityIdx int64 + VulnIdx int64