Minor updates to PhoneGap modules:
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
This commit is contained in:
@@ -6,7 +6,7 @@ beef:
|
||||
enable: true
|
||||
category: "Phonegap"
|
||||
name: "Persistence"
|
||||
description: "Insert the beef hook into phonegap's index.html (iphone only)"
|
||||
description: "Insert the BeEF hook into PhoneGap's index.html (iPhone only)"
|
||||
authors: ["mh"]
|
||||
target:
|
||||
working: ["All"]
|
||||
|
||||
@@ -3,17 +3,20 @@
|
||||
|
||||
class Persistence < BeEF::Core::Command
|
||||
|
||||
def self.options
|
||||
return [{
|
||||
'name' => 'hook_url',
|
||||
'description' => 'The URL of your beef hook',
|
||||
'ui_label'=>'Hook URL',
|
||||
'value' => 'http://beef:3000/hook.js',
|
||||
'width' => '300px'
|
||||
}]
|
||||
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
|
||||
def post_execute
|
||||
content = {}
|
||||
content['result'] = @datastore['result']
|
||||
save content
|
||||
|
||||
Reference in New Issue
Block a user