Change user agent check

git-svn-id: file:///home/svn/framework3/trunk@13993 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-10-18 15:48:03 +00:00
parent 63d3fe2e9c
commit 0f1ba8dcf1
1 changed files with 1 additions and 1 deletions

View File

@ -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