Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchCriteria ¶
type MatchCriteria struct { PluginID int ExternallyAccessible bool Ports []int DescriptionRegexps []string OrganizationIDs []int RegionIDs []int IgnoreViolationWithCriteriaMatch bool CountIf string }
MatchCriteria holds what criteria should be checked when checking for a policy violation.
func NewMatchCriteria ¶
func NewMatchCriteria(pluginID int, externallyAccessible, ignoreViolationWithCriteriaMatch bool, ports, organizationIDs, regionIDs []int, descriptionRegularExpressions []string, countIf string) *MatchCriteria
NewMatchCriteria creates a MatchCriteria structure and returns a pointer to the new structure.
func (*MatchCriteria) CheckForViolation ¶
func (m *MatchCriteria) CheckForViolation(r *Nessus6ResultRow) bool
CheckForViolation checks for matches in the policyViolations section of the configuration file. This function checks for matches with the Plugin ID, Port, Description Regular Expressions, organization ID, region ID and external accessibility.
type Nessus6ResultRow ¶
type Nessus6ResultRow struct { // Nessus default inclusions PluginID int CVE string CVSS int Risk string Host string Protocol string Port int Name string Synopsis string Description string Solution string SeeAlso string PluginOutput string // Additional (Optional) Criteria. Usually only necessary in larger companies OrganizationID int RegionID int }
Nessus6ResultRow represents a single row of an exported CSV results file from Tenable's Nessus 6.
Click to show internal directories.
Click to hide internal directories.