From 0f1ba8dcf158d2724f218c64b1446c25cb691585 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Tue, 18 Oct 2011 15:48:03 +0000 Subject: [PATCH] Change user agent check git-svn-id: file:///home/svn/framework3/trunk@13993 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/windows/browser/safari_xslt_output.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/windows/browser/safari_xslt_output.rb b/modules/exploits/windows/browser/safari_xslt_output.rb index 8001e0fe11..07338b7397 100644 --- a/modules/exploits/windows/browser/safari_xslt_output.rb +++ b/modules/exploits/windows/browser/safari_xslt_output.rb @@ -68,7 +68,7 @@ class Metasploit3 < Msf::Exploit::Remote def on_request_uri(cli, request) # Check target before attacking agent = request.headers['User-Agent'] - if agent !~ /Windows NT 5\.1/ or agent !~ /Safari/ or agent !~ /Version\/5\.0\.\d/ + if agent !~ /Windows NT 5\.1/ or agent !~ /Safari\/5/ or agent =~ /Chrome/ print_error("This target isn't supported: #{agent.to_s}") send_not_found(cli) return