class Mdm::Loot

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.

Constants

RELATIVE_SEARCH_FIELDS

CONSTANTS

Private Instance Methods

delete_file() click to toggle source

Deletes {#path} from disk.

@todo www.pivotaltracker.com/story/show/49023795 @return [void]

# File app/models/mdm/loot.rb, line 148
def delete_file
  c = Pro::Client.get rescue nil
  if c
    c.loot_delete_file(self[:id])
  else
    ::File.unlink(self.path) rescue nil
  end
end