Sha256: 83c9613e40615f22c8a2842ace2c44c6ca48bcff4d24ee622a51df70217e5ce3
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 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 Metasploit::Concern.run(self) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metasploit_data_models-1.0.0.pre.rails.pre.4.0b | app/models/mdm/exploit_attempt.rb |
metasploit_data_models-1.0.0.pre.rails.pre.4.0a | app/models/mdm/exploit_attempt.rb |