Class: Mdm::ExploitAttempt
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Mdm::ExploitAttempt
- Defined in:
- app/models/mdm/exploit_attempt.rb
Overview
An attempt to exploit #host.
Instance Attribute Summary collapse
-
#attempted_at ⇒ DateTime
When the attempt was made.
-
#exploited ⇒ true, false
Whether the attempt was successful.
-
#fail_detail ⇒ String?
A more verbose reason (compared to #fail_reason for the failure..
-
#fail_reason ⇒ String?
Summary of why the attempt failed if #exploited is
false
. -
#host_id ⇒ Integer
Foreign key to look up #host.
-
#module ⇒ String
The full name of the exploit module that made the attempt.
-
#port ⇒ Integer
The port on #host which the exploit was attempted.
-
#proto ⇒ String
The protocol name used on #port.
-
#username ⇒ String
Name of user that made the attempt.
Instance Method Summary collapse
-
#host ⇒ Mdm::Host
Host that was attempted to be exploited.
-
#loot ⇒ Mdm::Loot?
Loot gathers from the successful exploit.
-
#service ⇒ Mdm::Service?
The service being exploited on #host.
-
#session ⇒ Mdm::Session?
The session that was established when this attempt was successful.
-
#vuln ⇒ Mdm::Vuln?
The vulnerability that was attempted to be exploited.
Instance Attribute Details
#attempted_at ⇒ DateTime
When the attempt was made.
|
# File 'app/models/mdm/exploit_attempt.rb', line 49
|
#exploited ⇒ true, false
Whether the attempt was successful.
|
# File 'app/models/mdm/exploit_attempt.rb', line 54
|
#fail_detail ⇒ String?
A more verbose reason (compared to #fail_reason for the failure.
|
# File 'app/models/mdm/exploit_attempt.rb', line 60
|
#fail_reason ⇒ String?
Summary of why the attempt failed if #exploited is false
. For more details see #fail_detail.
|
# File 'app/models/mdm/exploit_attempt.rb', line 65
|
#host_id ⇒ Integer
Foreign key to look up #host.
|
# File 'app/models/mdm/exploit_attempt.rb', line 70
|
#module ⇒ String
Remove deprecated Mdm::Exploit#module (MSP-9281)
The full name of the exploit module that made the attempt.
|
# File 'app/models/mdm/exploit_attempt.rb', line 75
|
#port ⇒ Integer
Mdm::ExploitAttempt#port and Mdm::ExploitAttempt#proto are obsolete and should be removed (MSP-9284)
The port on #host which the exploit was attempted.
|
# File 'app/models/mdm/exploit_attempt.rb', line 81
|
#proto ⇒ String
Mdm::ExploitAttempt#port and Mdm::ExploitAttempt#proto are obsolete and should be removed (MSP-9284)
The protocol name used on #port.
|
# File 'app/models/mdm/exploit_attempt.rb', line 87
|
#username ⇒ String
Name of user that made the attempt. May be an User#name or a system username.
|
# File 'app/models/mdm/exploit_attempt.rb', line 93
|
Instance Method Details
#host ⇒ Mdm::Host
Host that was attempted to be exploited.
11 12 13 14 |
# File 'app/models/mdm/exploit_attempt.rb', line 11 belongs_to :host, class_name: 'Mdm::Host', counter_cache: :exploit_attempt_count, inverse_of: :exploit_attempts |
#loot ⇒ Mdm::Loot?
Loot gathers from the successful exploit.
19 20 21 |
# File 'app/models/mdm/exploit_attempt.rb', line 19 belongs_to :loot, class_name: 'Mdm::Loot', inverse_of: :exploit_attempt |
#service ⇒ Mdm::Service?
The service being exploited on #host.
26 27 28 |
# File 'app/models/mdm/exploit_attempt.rb', line 26 belongs_to :service, class_name: 'Mdm::Service', inverse_of: :exploit_attempts |
#session ⇒ Mdm::Session?
The session that was established when this attempt was successful.
34 35 36 |
# File 'app/models/mdm/exploit_attempt.rb', line 34 belongs_to :session, class_name: 'Mdm::Session', inverse_of: :exploit_attempt |
#vuln ⇒ Mdm::Vuln?
The vulnerability that was attempted to be exploited.
41 42 43 |
# File 'app/models/mdm/exploit_attempt.rb', line 41 belongs_to :vuln, class_name: 'Mdm::Vuln', inverse_of: :exploit_attempts |