Sha256: f01fd89fbd6d427c66b32e0dc463196004c1e7c98fc2e04b35be3714d190c2c9

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

# Runs a {#match_set set of matches} to produce {#match_results results}.
class MetasploitDataModels::AutomaticExploitation::Run < ActiveRecord::Base
  #
  # Associations
  #

  # Results of each match in {#match_set}.
  has_many :match_results,
           class_name:'MetasploitDataModels::AutomaticExploitation::MatchResult',
           inverse_of: :run,
           dependent: :destroy

  # Set of matches to run
  belongs_to :match_set,
             class_name: 'MetasploitDataModels::AutomaticExploitation::MatchSet',
             inverse_of: :runs

  # User that initiated this run.
  belongs_to :user,
             class_name: "Mdm::User",
             inverse_of: :automatic_exploitation_runs

  # Workspace in which this run was performed.
  belongs_to :workspace,
             class_name: "Mdm::Workspace",
             inverse_of: :automatic_exploitation_runs

  #
  # Mass Assignment Security
  #

  attr_accessible :match_set_id
  attr_accessible :user_id
  attr_accessible :workspace_id

  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/metasploit_data_models/automatic_exploitation/run.rb
metasploit_data_models-0.24.3 app/models/metasploit_data_models/automatic_exploitation/run.rb
metasploit_data_models-0.24.2 app/models/metasploit_data_models/automatic_exploitation/run.rb