class Nexpose::External::VulnerabilityCheck

Vulnerability check object for importing vulnerabilities into Nexpose.

Attributes

key[RW]

Unique identifier of a vulnerability instance, typically used for spider vulns or when multiple instances of a vuln exist on the same service.

proof[RW]

Explanation of what proves that an asset or service is vulnerable.

status[RW]

Status of the vulnerability. @see VulnerabilityCheck::Status

vuln_id[RW]

Unique identifier of a vulnerability in Nexpose.

Public Class Methods

new(vuln_id, status = Status::EXPLOITED, proof = nil, key = nil) click to toggle source
# File lib/nexpose/external.rb, line 173
def initialize(vuln_id, status = Status::EXPLOITED, proof = nil, key = nil)
  @vuln_id = vuln_id
  @status  = status
  @proof   = proof
  @key     = key
end

Public Instance Methods

to_h() click to toggle source
# File lib/nexpose/external.rb, line 180
def to_h
  { vuln_id: vuln_id,
    status: status,
    key: key,
    proof: proof }
end