From f1f591a245fbfc24e7cee97acb5cd285cd284b3e Mon Sep 17 00:00:00 2001 From: "scotty.b.brown@gmail.com" Date: Thu, 28 Apr 2011 04:30:09 +0000 Subject: [PATCH] (Fixes issue 202) See issue comments for details. git-svn-id: https://beef.googlecode.com/svn/trunk@938 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- .../admin_ui/controllers/modules/modules.rb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/extensions/admin_ui/controllers/modules/modules.rb b/extensions/admin_ui/controllers/modules/modules.rb index e45b5dd3d..593eed367 100644 --- a/extensions/admin_ui/controllers/modules/modules.rb +++ b/extensions/admin_ui/controllers/modules/modules.rb @@ -93,7 +93,7 @@ class Modules < BeEF::Extension::AdminUI::HttpController browser_name = BD.get(zombie_session, 'BrowserName') if not browser_name.nil? friendly_browser_name = BeEF::Core::Constants::Browsers.friendly_name(browser_name) - browser_name_hash = { 'Browser Name' => friendly_browser_name } + browser_name_hash = { 'Detected Browser Name' => friendly_browser_name } browser_name_row = { 'category' => 'Browser Hook Initialisation', @@ -108,7 +108,7 @@ class Modules < BeEF::Extension::AdminUI::HttpController browser_version = BD.get(zombie_session, 'BrowserVersion') if not browser_version.nil? encoded_browser_version = CGI.escapeHTML(browser_version) - browser_version_hash = { 'Browser Version' => encoded_browser_version } + browser_version_hash = { 'Detected Browser Version' => encoded_browser_version } browser_version_row = { 'category' => 'Browser Hook Initialisation', @@ -119,6 +119,21 @@ class Modules < BeEF::Extension::AdminUI::HttpController summary_grid_hash['results'].push(browser_version_row) # add the row end + # set and add the return values for the browser ua string + browser_uastring = BD.get(zombie_session, 'BrowserReportedName') + #browser_uastring = "test" + if not browser_uastring.nil? + browser_uastring_hash = { 'Browser UA String' => browser_uastring } + + browser_uastring_row = { + 'category' => 'Browser Hook Initialisation', + 'data' => browser_uastring_hash, + 'from' => 'Initialisation' + } + + summary_grid_hash['results'].push(browser_uastring_row) # add the row + end + # set and add the list of plugins installed in the browser browser_plugins = BD.get(zombie_session, 'BrowserPlugins') if not browser_plugins.nil? and not browser_plugins.empty?