Skip to content

Commit 768dca5

Browse files
committed
Land rapid7#5685, @wchen-r7's check for IE11/Win8
2 parents a12c84d + a3ec56c commit 768dca5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/exploits/multi/browser/adobe_flash_hacking_team_uaf.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def initialize(info={})
2121
2222
Windows 7 SP1 (32-bit), IE11 and Adobe Flash 18.0.0.194,
2323
Windows 7 SP1 (32-bit), Firefox 38.0.5 and Adobe Flash 18.0.0.194,
24-
Windows 8.1 (32-bit), Firefox and Adobe Flash 18.0.0.194,
25-
Windows 8.1 (32-bit), IE11 and Flash 17.0.0.169, and
24+
Windows 8.1 (32-bit), Firefox and Adobe Flash 18.0.0.194, and
2625
Linux Mint "Rebecca" (32 bits), Firefox 33.0 and Adobe Flash 11.2.202.468.
2726
},
2827
'License' => MSF_LICENSE,
@@ -106,6 +105,12 @@ def exploit
106105
def on_request_exploit(cli, request, target_info)
107106
print_status("Request: #{request.uri}")
108107

108+
if target_info[:os_name] == OperatingSystems::Match::WINDOWS_81 && target_info[:ua_ver] == '11.0'
109+
print_warning("Target setup not supported")
110+
send_not_found(cli)
111+
return
112+
end
113+
109114
if request.uri =~ /\.swf$/
110115
print_status('Sending SWF...')
111116
send_response(cli, @swf, {'Content-Type'=>'application/x-shockwave-flash', 'Cache-Control' => 'no-cache, no-store', 'Pragma' => 'no-cache'})

0 commit comments

Comments
 (0)