From 147cc8573b4756e75d292ff949f43bd7b0b45aff Mon Sep 17 00:00:00 2001 From: "sussurro@happypacket.net" Date: Wed, 5 Jan 2011 20:45:25 +0000 Subject: [PATCH] Fix captiolzation of OsName field query git-svn-id: https://beef.googlecode.com/svn/trunk@675 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- lib/modules/command.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/command.rb b/lib/modules/command.rb index 731606e82..2cebc4fef 100644 --- a/lib/modules/command.rb +++ b/lib/modules/command.rb @@ -193,10 +193,9 @@ module BeEF browser_match = test_target_attribute(hb_browser_name, hb_browser_version, target_browser_name, target_browser_max_ver, target_browser_min_ver) # check if the operating system is a target - hb_os_name = get_browser_detail('OSName') + hb_os_name = get_browser_detail('OsName') target_os_name = target_definition['os_name'] os_match = test_target_attribute(hb_os_name, nil, target_os_name, nil, nil) - return browser_match && os_match end