Class: Mdm::Loot

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/loot.rb

Overview

Loot gathered from #host or #service such as files to prove you were on the system or to crack later to gain sessions on other machines in the network.

Constant Summary collapse

RELATIVE_SEARCH_FIELDS =

CONSTANTS

[
    'ltype',
    'name',
    'info',
    'data'
]

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

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.

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 41


#created_atDateTime

When the loot was created.

Returns:

  • (DateTime)


# File 'app/models/mdm/loot.rb', line 47


#dataString

Loot data not stored in file at #path.

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 52


#hostMdm::Host

The host from which the loot was gathered.

Returns:



23
# File 'app/models/mdm/loot.rb', line 23

belongs_to :host, :class_name => 'Mdm::Host'

#infoString

Information about the loot.

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 62


#ltypeString

The type of loot

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 57


#nameString

The name of the loot.

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 67


#pathString

The on-disk path to the loot file.

Returns:

  • (String)


# File 'app/models/mdm/loot.rb', line 72


#serviceMdm::Service

The service running on the #host from which the loot was gathered.

Returns:



29
# File 'app/models/mdm/loot.rb', line 29

belongs_to :service, :class_name => 'Mdm::Service'

#updated_atDateTime

The last time the loot was updated.

Returns:

  • (DateTime)


# File 'app/models/mdm/loot.rb', line 77


#workspaceMdm::Workspace

The workspace in which the loot is stored and the #host exists.

Returns:



35
# File 'app/models/mdm/loot.rb', line 35

belongs_to :workspace, :class_name => 'Mdm::Workspace'