Sha256: 4e27c41513322af21d87406cc2dbbb0474efd5d71bc91e2663ae1495df02c172

Contents?: true

Size: 1023 Bytes

Versions: 3

Compression:

Stored size: 1023 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]

  #
  # Mass Assignment Security
  #

  attr_accessible :index
  attr_accessible :name

  #
  # Validators
  #

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

  Metasploit::Concern.run(self)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.4 app/models/mdm/module/target.rb
metasploit_data_models-0.24.3 app/models/mdm/module/target.rb
metasploit_data_models-0.24.2 app/models/mdm/module/target.rb