o Fixed bug in the Detect PhoneGap module o No longer fails to return if PhoneGap is not present o Some minor module name and description updates
26 lines
568 B
Ruby
26 lines
568 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")
|
|
|
|
return [{
|
|
'name' => 'hook_url',
|
|
'description' => 'The URL of your BeEF hook',
|
|
'ui_label'=>'Hook URL',
|
|
'value' => 'http://'+beef_host+':3000/hook.js',
|
|
'width' => '300px'
|
|
}]
|
|
end
|
|
|
|
def post_execute
|
|
content = {}
|
|
content['result'] = @datastore['result']
|
|
save content
|
|
end
|
|
|
|
end
|