Sha256: c8fb6911d933d75d9cf662a1daedd46c00f6c4e6c1b9524b048745f1f0633036

Contents?: true

Size: 1.07 KB

Versions: 39

Compression:

Stored size: 1.07 KB

Contents

module CMSScanner
  # Generic Vulnerability
  class Vulnerability
    include References

    attr_reader :title, :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
      @type     = type
      @fixed_in = fixed_in

      self.references = references
    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

39 entries across 39 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.9 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.8 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.7 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.6 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.5 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.4 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.3 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.2 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.1 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.41.0 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.40.3 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.40.2 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.40.1 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.40 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.39.4 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.39.3 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.39.2 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.39.1 lib/cms_scanner/vulnerability.rb
cms_scanner-0.0.39.0 lib/cms_scanner/vulnerability.rb