Sha256: 9c2c05540c3bf039aac460314664bbd13b55520c27fa757e88f1dd353fe59006
Contents?: true
Size: 1.16 KB
Versions: 59
Compression:
Stored size: 1.16 KB
Contents
class Mdm::VulnAttempt < ActiveRecord::Base # # Associations # # @!attribute loot # Loot gathered from this attempt. # # @return [Mdm::Loot] if {#exploited} is `true`. # @return [nil] if {#exploited} is `false`. belongs_to :loot, class_name: 'Mdm::Loot', inverse_of: :vuln_attempt # @!attribute session # The session opened by this attempt. # # @return [Mdm::Session] if {#exploited} is `true`. # @return [nil] if {#exploited} is `false`. belongs_to :session, class_name: 'Mdm::Session', inverse_of: :vuln_attempt # @!attribute vuln # The {Mdm::Vuln vulnerability} that this attempt was exploiting. # # @return [Mdm::Vuln] belongs_to :vuln, class_name: 'Mdm::Vuln', counter_cache: :vuln_attempt_count, inverse_of: :vuln_attempts # # Attributes # # @!attribute [rw] exploited # Whether this attempt was successful. # # @return [true] if {#vuln} was exploited. # @return [false] if {#vuln} was not exploited. # # Validations # validates :vuln_id, :presence => true Metasploit::Concern.run(self) end
Version data entries
59 entries across 59 versions & 1 rubygems