Sha256: 867f6dd8deb2d8ba746735549c188be789315243d4b8f88757efbe9eab5e0e31

Contents?: true

Size: 1006 Bytes

Versions: 44

Compression:

Stored size: 1006 Bytes

Contents

# External references to the vulnerability exploited by this module.
class Mdm::Module::Ref < ActiveRecord::Base
  self.table_name = 'module_refs'

  #
  # Associations
  #

  # @!attribute [rw] detail
  #   The root of the module metadata tree.
  #
  #   @return [Mdm::Module::Detail]
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  # @!attribute [r] refs
  #   References with the same name attached to {Mdm::Vuln Mdm::Vulns}.
  #
  #   @return [Array<Mdm::Ref>]
  has_many :refs,
           :class_name => 'Mdm::Ref',
           :foreign_key => :name,
           :primary_key => :name

  #
  # Attributes
  #

  # @!attribute [rw] name
  #   Designation for external reference.  May include a prefix for the authority, such as 'CVE-', in which case the
  #   rest of the name is the designation assigned by that authority.
  #
  #   @return [String]

  #
  # Validations
  #

  validates :detail, :presence => true
  validates :name, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.10 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.9 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.8 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.7 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.6 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.5 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.17 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.4 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.2 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.1 app/models/mdm/module/ref.rb
metasploit_data_models-3.0.0 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.16 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.15 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.14 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.13 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.12 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.11 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.10 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.9 app/models/mdm/module/ref.rb
metasploit_data_models-2.0.8 app/models/mdm/module/ref.rb