class Nexpose::VulnSynopsis
Vulnerability
synopsis information pulled from AJAX
requests. Data uses a numeric, console-specific vuln ID, which may need to be cross-referenced to the String ID to be used elsewhere.
Public Class Methods
new(hash)
click to toggle source
# File lib/nexpose/vuln.rb, line 276 def initialize(hash) @id = hash['Vuln ID'].to_i @title = hash['Vulnerability'] @cvss_vector = hash['CVSS Base Vector'] @cvss_score = hash['CVSS Score'].to_f @risk = hash['Risk'].to_f @published = Time.at(hash['Published On'].to_i / 1000) @severity = hash['Severity'].to_i @instances = hash['Instances'].to_i @exploit = hash['ExploitSource'] @malware = hash['MalwareSource'] == 'true' end