From aafb30ba8c7d2b5c52472928a4e8731cdb38e5da Mon Sep 17 00:00:00 2001 From: James Lee Date: Thu, 6 Jan 2011 21:24:38 +0000 Subject: [PATCH] update user agent string detection for some android, fedora, ipod/ipad/iphone git-svn-id: file:///home/svn/framework3/trunk@11495 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/http/server.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/msf/core/exploit/http/server.rb b/lib/msf/core/exploit/http/server.rb index 59c58d9b83..612c736ab3 100644 --- a/lib/msf/core/exploit/http/server.rb +++ b/lib/msf/core/exploit/http/server.rb @@ -193,6 +193,12 @@ module Exploit::Remote::HttpServer fp[:os_flavor] = 'Debian' when /ubuntu/ fp[:os_flavor] = 'Ubuntu' + when /fedora/ + fp[:os_flavor] = 'Fedora' + when /red hat|rhel/ + fp[:os_flavor] = 'RHEL' + when /android/ + fp[:os_flavor] = 'Android' else fp[:os_flavor] = '' end @@ -206,6 +212,8 @@ module Exploit::Remote::HttpServer # in the useragent of 32-bit IE running on 64-bit # Windows fp[:arch] = ARCH_X86 + when /android|iphone|ipod|ipad/ + fp[:arch] = ARCH_ARMLE else fp[:arch] = ARCH_X86 end