Land #1957 - fix User-agent typos for maxthon_history_xcs.rb

unstable
sinn3r 2013-06-14 11:04:08 -05:00
commit 377fe9fa39
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ class Metasploit3 < Msf::Exploit::Remote
end
def on_request_uri(cli, request)
if request.headers['User-agent'] !~ /Maxthon\/3/ or request.headers['User-agent'] !~ /AppleWebKit\/534.12/
print_status("Sending 404 for User-Agent #{request.headers['User-agent']}")
if request.headers['User-Agent'] !~ /Maxthon\/3/ or request.headers['User-Agent'] !~ /AppleWebKit\/534.12/
print_status("Sending 404 for User-Agent #{request.headers['User-Agent']}")
send_not_found(cli)
return
end