Change user agent check
git-svn-id: file:///home/svn/framework3/trunk@13993 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
63d3fe2e9c
commit
0f1ba8dcf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue