Module: Ronin::Exploits::Mixins::Loot
- Defined in:
- lib/ronin/exploits/mixins/loot.rb
Overview
Adds the ability to store captured "loot" (ex: passwords, files, etc).
Examples
module Ronin
module Exploits
class MyExploit < Exploit
include Mixins::Loot
def launch
# ...
# add a file
loot.add('foo.txt', captured_file)
# add a file with a relative path
loot.add('path/of/file', captured_file)
# add JSON data
loot.add('foo.json', data, format: :json)
# add YAML data
loot.add('foo.yaml', data, format: :yaml)
# add CSV data
loot.add('foo.csv', data, format: :csv)
end
end
end
end
Instance Attribute Summary collapse
-
#loot ⇒ Ronin::Exploits::Loot
readonly
The loot storage.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Object
Initializes the exploit and #loot storage.
Instance Attribute Details
#loot ⇒ Ronin::Exploits::Loot (readonly)
The loot storage.
69 70 71 |
# File 'lib/ronin/exploits/mixins/loot.rb', line 69 def loot @loot end |