Sha256: bce4d52aea3017ca626f54e5a5bd6fad4dd329ef2d4abcf207104c2a68a094e4
Contents?: true
Size: 1.11 KB
Versions: 22
Compression:
Stored size: 1.11 KB
Contents
require 'cms_scanner/vulnerability/references' module CMSScanner # Generic Vulnerability class Vulnerability attr_reader :title, :references, :type, :fixed_in # @param [ String ] title # @param [ Hash ] references # @option references [ Array<String>, String ] cve # @option references [ Array<String>, String ] secunia # @option references [ Array<String>, String ] osvdb # @option references [ Array<String>, String ] exploitdb # @option references [ Array<String> ] url URL(s) to related advisories etc # @option references [ Array<String>, String ] metasploit The related metasploit module(s) # @param [ String ] type # @param [ String ] fixed_in def initialize(title, references = {}, type = nil, fixed_in = nil) @title = title @references = references @type = type @fixed_in = fixed_in end # param [ Vulnerability ] other # # @return [ Boolean ] def ==(other) title == other.title && type == other.type && references == other.references && fixed_in == other.fixed_in end end end
Version data entries
22 entries across 22 versions & 1 rubygems