Skip to content

Commit aebf505

Browse files
committed
Dont compare a string to an integer
1 parent 6c529f8 commit aebf505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/local/ms14_070_tcpip_ioctl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def check
6969
major, minor, build, revision, branch = file_version(file_path)
7070
vprint_status("tcpip.sys file version: #{major}.#{minor}.#{build}.#{revision} branch: #{branch}")
7171

72-
if ("#{major}.#{minor}.#{build}" == "5.2.3790" && "#{revision}" < 5440)
72+
if ("#{major}.#{minor}.#{build}" == "5.2.3790" && revision < 5440)
7373
return Exploit::CheckCode::Vulnerable
7474
end
7575

0 commit comments

Comments
 (0)