Sha256: a23899341832e03d61a67cedf9be485109f987fb13f55ca7b71e4d9128654771

Contents?: true

Size: 935 Bytes

Versions: 42

Compression:

Stored size: 935 Bytes

Contents

# A potential target for a {Mdm::Module::Detail exploit Metasploit Module}.  Targets can change options including
# offsets for ROP chains to tune an exploit to work with different system libraries and versions.
class Mdm::Module::Target < ActiveRecord::Base
  self.table_name = 'module_targets'

  #
  # Associations
  #

  # Exploit Metasploit Module with the {#name named} target at the given {#index}.
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  #
  # Attributes
  #

  # @!attribute index
  #   The index of this target in the {#detail exploit Metasploit Module}'s list of targets. The index is used for
  #   target selection.
  #
  #   @return [Integer]

  # @!attribute name
  #   The name of this target.
  #
  #   @return [String]

  #
  # Validators
  #

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

  Metasploit::Concern.run(self)
end

Version data entries

42 entries across 42 versions & 1 rubygems

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