Sha256: 00ed4856eaa997ad88fc54220d9692ea5b4d8f447aba77d8c2af0b220e7405cb

Contents?: true

Size: 1.35 KB

Versions: 5

Compression:

Stored size: 1.35 KB

Contents

class Mdm::ExploitAttempt < ActiveRecord::Base
  #
  # Associations
  #

  # @!attribute host
  #   Host that was attempted to be exploited.
  #
  #   @return [Mdm::Host]
  belongs_to :host,
             class_name: 'Mdm::Host',
             counter_cache: :exploit_attempt_count,
             inverse_of: :exploit_attempts

  # @!attribute loot
  #   Loot gathers from the successful exploit.
  #
  #   @return [Mdm::Loot, nil]
  belongs_to :loot,
             class_name: 'Mdm::Loot',
             inverse_of: :exploit_attempt

  # @!attribute service
  #   The service being exploited on {#host}.
  #
  #   @return [Mdm::Service, nil]
  belongs_to :service,
             class_name: 'Mdm::Service',
             inverse_of: :exploit_attempts

  # @!attribute session
  #   The session that was established when this attempt was successful.
  #
  #   @return [Mdm::Session]
  #   @return [nil] if session was not established.
  belongs_to :session,
             class_name: 'Mdm::Session',
             inverse_of: :exploit_attempt

  # @!attribute vuln
  #   The vulnerability that was attempted to be exploited.
  #
  #   @return [Mdm::Vuln, nil]
  belongs_to :vuln,
             class_name: 'Mdm::Vuln',
             inverse_of: :exploit_attempts

  #
  # Validations
  #

  validates :host_id, :presence => true

  ActiveSupport.run_load_hooks(:mdm_exploit_attempt, self)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit_data_models-0.17.2-java app/models/mdm/exploit_attempt.rb
metasploit_data_models-0.17.2 app/models/mdm/exploit_attempt.rb
metasploit_data_models-0.17.2.pre.metasploit.pre.data.pre.models.pre.search app/models/mdm/exploit_attempt.rb
metasploit_data_models-0.17.1-java app/models/mdm/exploit_attempt.rb
metasploit_data_models-0.17.1 app/models/mdm/exploit_attempt.rb