Sha256: 1bcf1ec09a59038c67354a8015927dd98d585ebf21f40cad444db238b2c76a44

Contents?: true

Size: 986 Bytes

Versions: 42

Compression:

Stored size: 986 Bytes

Contents

# Actions that auxiliary or post Metasploit Modules can perform.  Actions are used to select subcommand-like behavior
# implemented by the same Metasploit Nodule.  The semantics of a given action are specific to a given
# {Mdm::Module::Detail Metasploit Module}: if two {Mdm::Module::Detail Metasploit Modules} have
# {Mdm::Module::Action actions} with the same {Mdm::Module::Action#name name}, no similarity should be assumed between
# those two {Mdm::Module::Action actions} or {Mdm::Module::Detail Metasploit Modules}.
class Mdm::Module::Action < ActiveRecord::Base
  self.table_name = 'module_actions'  

  #
  # Associations
  #

  # The Metasploit Module with this action.
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  #
  # Attributes
  #

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

  #
  # Validations
  #

  validates :detail, :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/action.rb
metasploit_data_models-3.0.9 app/models/mdm/module/action.rb
metasploit_data_models-3.0.8 app/models/mdm/module/action.rb
metasploit_data_models-3.0.7 app/models/mdm/module/action.rb
metasploit_data_models-3.0.6 app/models/mdm/module/action.rb
metasploit_data_models-3.0.5 app/models/mdm/module/action.rb
metasploit_data_models-2.0.17 app/models/mdm/module/action.rb
metasploit_data_models-3.0.4 app/models/mdm/module/action.rb
metasploit_data_models-3.0.2 app/models/mdm/module/action.rb
metasploit_data_models-3.0.1 app/models/mdm/module/action.rb
metasploit_data_models-3.0.0 app/models/mdm/module/action.rb
metasploit_data_models-2.0.16 app/models/mdm/module/action.rb
metasploit_data_models-2.0.15 app/models/mdm/module/action.rb
metasploit_data_models-2.0.14 app/models/mdm/module/action.rb
metasploit_data_models-2.0.13 app/models/mdm/module/action.rb
metasploit_data_models-2.0.12 app/models/mdm/module/action.rb
metasploit_data_models-2.0.11 app/models/mdm/module/action.rb
metasploit_data_models-2.0.10 app/models/mdm/module/action.rb
metasploit_data_models-2.0.9 app/models/mdm/module/action.rb
metasploit_data_models-2.0.8 app/models/mdm/module/action.rb