Skip to content

Commit ab55286

Browse files
authored
Land rapid7#19721, Fix version in CVE-2020-0668 module
Fix version check for cve-2020-0668 Service Tracing
2 parents 985444e + 48ed31f commit ab55286

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/exploits/windows/local/cve_2020_0668_service_tracing.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ def exploit
261261

262262
# start file copy
263263
rastapi_privileged_filecopy(payload_dll, exploit_dir, upload_payload_pathname, target_payload_pathname)
264-
265264
# launch trigger
266265
launch_dll_trigger
267266
print_warning("Manual cleanup after reboot required for #{target_payload_pathname} and #{exploit_dir}")
@@ -285,8 +284,7 @@ def validate_target
285284
end
286285

287286
version_info = get_version_info
288-
vprint_status("Version: #{version_info.number}")
289-
unless version_info.build_version.between?(Msf::WindowsVersion::Win10_1803, Msf::WindowsVersion::Win10_1909)
287+
unless version_info.build_number.between?(Msf::WindowsVersion::Win10_1803, Msf::WindowsVersion::Win10_1909)
290288
fail_with(Failure::NotVulnerable, 'The exploit only supports Windows 10 build versions 17134-18363')
291289
end
292290
end

0 commit comments

Comments
 (0)