Sha256: 38f5e043bc4d1bde8957b6dcf70a5c2ab5ad2553f8eae38f7115cfaf1548e1e0

Contents?: true

Size: 1.03 KB

Versions: 52

Compression:

Stored size: 1.03 KB

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]

  #
  # Mass Assignment Security
  #

  attr_accessible :name

  #
  # Validations
  #

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

  Metasploit::Concern.run(self)
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
metasploit_data_models-0.23.1 app/models/mdm/module/ref.rb
metasploit_data_models-0.23.1-java app/models/mdm/module/ref.rb
metasploit_data_models-0.23.0 app/models/mdm/module/ref.rb
metasploit_data_models-0.23.0-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.8 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.8-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.7 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.7-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.6 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.6-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.5 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.5-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.4 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.4-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.3 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.3-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.2 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.2-java app/models/mdm/module/ref.rb
metasploit_data_models-0.22.1 app/models/mdm/module/ref.rb
metasploit_data_models-0.22.1-java app/models/mdm/module/ref.rb