Skip to content

Commit ca0ab8d

Browse files
RuslaideeminRuslaideemin
authored andcommitted
maxthon_history_xcs.rb - fix User-agent string
request.headers['User-agent'] is incorrect, it should be request.headers['User-Agent']. Downloaded following version from oldapps.com to confirm the exploit code is wrong. Supported Systems Windows 98, 2000 (Maxthon 2.5.15 Build 1000), XP, Vista, 7, 8 MD5 Checksum F3791637C886A46940876211209F82F4 SHA1 Checksum 039BB218245E5DC1BAB0F57298C68AC487F86323 Release Date 20 October, 2011 (2 years ago )
1 parent 69c2501 commit ca0ab8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/browser/maxthon_history_xcs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def initialize(info = {})
5151
end
5252

5353
def on_request_uri(cli, request)
54-
if request.headers['User-agent'] !~ /Maxthon\/3/ or request.headers['User-agent'] !~ /AppleWebKit\/534.12/
55-
print_status("Sending 404 for User-Agent #{request.headers['User-agent']}")
54+
if request.headers['User-Agent'] !~ /Maxthon\/3/ or request.headers['User-Agent'] !~ /AppleWebKit\/534.12/
55+
print_status("Sending 404 for User-Agent #{request.headers['User-Agent']}")
5656
send_not_found(cli)
5757
return
5858
end

0 commit comments

Comments
 (0)