Class: Mdm::Loot
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mdm::Loot
- Defined in:
- app/models/mdm/loot.rb
Overview
Constant Summary collapse
- RELATIVE_SEARCH_FIELDS =
CONSTANTS
[ 'ltype', 'name', 'info', 'data' ]
Instance Attribute Summary collapse
-
#content_type ⇒ String
The mime/content type of the file at #path.
-
#created_at ⇒ DateTime
When the loot was created.
-
#data ⇒ String
Loot data not stored in file at #path.
-
#exploit_attempt ⇒ Mdm::ExploitAttempt
Exploit attempt where this loot was gathered.
-
#host ⇒ Mdm::Host
The host from which the loot was gathered.
-
#info ⇒ String
Information about the loot.
-
#ltype ⇒ String
The type of loot.
-
#name ⇒ String
The name of the loot.
-
#path ⇒ String
The on-disk path to the loot file.
-
#service ⇒ Mdm::Service
The service running on the #host from which the loot was gathered.
-
#updated_at ⇒ DateTime
The last time the loot was updated.
-
#vuln_attempt ⇒ Mdm::VulnAttempt
Vuln attempt that gathered this loot.
-
#workspace ⇒ Mdm::Workspace
The workspace in which the loot is stored and the #host exists.
Instance Attribute Details
#content_type ⇒ String
The mime/content type of the file at #path. Used to server the file correctly so browsers understand whether to render or download the file.
|
# File 'app/models/mdm/loot.rb', line 63
|
#created_at ⇒ DateTime
When the loot was created.
|
# File 'app/models/mdm/loot.rb', line 69
|
#exploit_attempt ⇒ Mdm::ExploitAttempt
Exploit attempt where this loot was gathered.
23 24 25 |
# File 'app/models/mdm/loot.rb', line 23 has_one :exploit_attempt, class_name: 'Mdm::ExploitAttempt', inverse_of: :loot |
#host ⇒ Mdm::Host
The host from which the loot was gathered.
31 32 33 |
# File 'app/models/mdm/loot.rb', line 31 belongs_to :host, class_name: 'Mdm::Host', inverse_of: :loots |
#info ⇒ String
Information about the loot.
|
# File 'app/models/mdm/loot.rb', line 84
|
#ltype ⇒ String
The type of loot
|
# File 'app/models/mdm/loot.rb', line 79
|
#name ⇒ String
The name of the loot.
|
# File 'app/models/mdm/loot.rb', line 89
|
#path ⇒ String
The on-disk path to the loot file.
|
# File 'app/models/mdm/loot.rb', line 94
|
#service ⇒ Mdm::Service
The service running on the #host from which the loot was gathered.
39 40 41 |
# File 'app/models/mdm/loot.rb', line 39 belongs_to :service, class_name: 'Mdm::Service', inverse_of: :loots |
#updated_at ⇒ DateTime
The last time the loot was updated.
|
# File 'app/models/mdm/loot.rb', line 99
|
#vuln_attempt ⇒ Mdm::VulnAttempt
Vuln attempt that gathered this loot.
47 48 49 |
# File 'app/models/mdm/loot.rb', line 47 has_one :vuln_attempt, class_name: 'Mdm::VulnAttempt', inverse_of: :loot |
#workspace ⇒ Mdm::Workspace
The workspace in which the loot is stored and the #host exists.
55 56 57 |
# File 'app/models/mdm/loot.rb', line 55 belongs_to :workspace, class_name: 'Mdm::Workspace', inverse_of: :loots |