From 602395ead05f8cf56ada089027875be36b76f876 Mon Sep 17 00:00:00 2001 From: James Lee Date: Thu, 4 Mar 2010 07:38:52 +0000 Subject: [PATCH] don't set the language if we don't have one git-svn-id: file:///home/svn/framework3/trunk@8709 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/http.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/msf/core/exploit/http.rb b/lib/msf/core/exploit/http.rb index a71a1045a0..2f12818896 100644 --- a/lib/msf/core/exploit/http.rb +++ b/lib/msf/core/exploit/http.rb @@ -391,7 +391,7 @@ module Exploit::Remote::HttpServer # # Store the results of server-side User-Agent fingerprinting in the DB. # - # Returns an array containing host and client information. + # Returns a Hash containing host and client information. # def report_user_agent(address, request) ua = request['User-Agent'].downcase @@ -472,9 +472,9 @@ module Exploit::Remote::HttpServer :host => address, :os_name => os_name, :os_flavor => os_flavor, - :os_lang => os_lang || 'en', :arch => arch } + host[:os_lang] = os_lang if os_lang report_host(host) client = { :host => address, @@ -488,7 +488,7 @@ module Exploit::Remote::HttpServer :type => 'http_request', :data => "#{address}: #{request.method} #{request.resource} #{os_name} #{ua_name} #{ua_ver}" ) - return [host, client] + return host.merge(client) end #