From 065276932c0048a4e1098f8718f5f95b81323064 Mon Sep 17 00:00:00 2001 From: bcoles Date: Fri, 1 Feb 2013 02:51:45 +1030 Subject: [PATCH] Add os_fingerprinting module --- modules/host/os_fingerprinting/command.js | 44 ++++++++++++++++++++++ modules/host/os_fingerprinting/config.yaml | 16 ++++++++ modules/host/os_fingerprinting/module.rb | 20 ++++++++++ 3 files changed, 80 insertions(+) create mode 100644 modules/host/os_fingerprinting/command.js create mode 100644 modules/host/os_fingerprinting/config.yaml create mode 100644 modules/host/os_fingerprinting/module.rb diff --git a/modules/host/os_fingerprinting/command.js b/modules/host/os_fingerprinting/command.js new file mode 100644 index 000000000..2c56114f9 --- /dev/null +++ b/modules/host/os_fingerprinting/command.js @@ -0,0 +1,44 @@ +// +// Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net +// Browser Exploitation Framework (BeEF) - http://beefproject.com +// See the file 'doc/COPYING' for copying permission +// + +beef.execute(function() { + + var os_version = new Array; + var dom = document.createElement('b'); + + Array.prototype.unique = function() { + var o = {}, i, l = this.length, r = []; + for(i=0; i", <%= @command_id %>, "windows_nt_version="+os_version.unique()); + }; + + // OS fingerprints // in the form of: "URI","NT version(s)" + var fingerprints = new Array( + new Array("5.1+","res://IpsmSnap.dll/wlcm.bmp"), + new Array("5.1+","res://wmploc.dll/257/album_0.png"), + new Array("5.1-6.0","res://wmploc.dll/23/images\amg-logo.gif"), + new Array("5.1-6.1","res://wmploc.dll/wmcomlogo.jpg"), + new Array("6.0+","res://wdc.dll/error.gif") + ); + + for (var i=0; i