Files
beef/modules/phonegap/persistence/module.rb
2011-12-21 23:27:40 +10:30

28 lines
631 B
Ruby

# phonegap persistenece
#
class Persistence < BeEF::Core::Command
def self.options
@configuration = BeEF::Core::Configuration.instance
beef_host = @configuration.get("beef.http.public") || @configuration.get("beef.http.host")
beef_port = @configuration.get("beef.http.port")
return [{
'name' => 'hook_url',
'description' => 'The URL of your BeEF hook',
'ui_label'=>'Hook URL',
'value' => 'http://'+beef_host+':'+beef_port+'/hook.js',
'width' => '300px'
}]
end
def post_execute
content = {}
content['result'] = @datastore['result']
save content
end
end