Skip to content

Commit 830f631

Browse files
committed
Make the check routine less strict
1 parent d6a63cc commit 830f631

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/exploits/windows/local/ms14_058_track_popup_menu.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ def check
9494
return Exploit::CheckCode::Safe if build == 9600
9595

9696
if arch == ARCH_X86
97-
return Exploit::CheckCode::Vulnerable if [2600, 3790, 7600].include?(build)
98-
return Exploit::CheckCode::Vulnerable if revision <= 18577
97+
return Exploit::CheckCode::Detected if [2600, 3790, 7600, 7601].include?(build)
9998
else
100-
return Exploit::CheckCode::Vulnerable if build == 7601 && revision <= 18577
99+
return Exploit::CheckCode::Detected if build == 7601
101100
end
102101

103102
return Exploit::CheckCode::Unknown
@@ -108,7 +107,7 @@ def exploit
108107
fail_with(Exploit::Failure::None, 'Session is already elevated')
109108
end
110109

111-
if check != Exploit::CheckCode::Vulnerable
110+
if check == Exploit::CheckCode::Safe
112111
fail_with(Exploit::Failure::NotVulnerable, "Exploit not available on this system.")
113112
end
114113

0 commit comments

Comments
 (0)