Skip to content

Commit e0fa1d5

Browse files
committed
Dont think this works on vista/8
1 parent 5a7730b commit e0fa1d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/exploits/windows/local/bypassuac_injection.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,10 @@ def upload_payload_dll!
211211

212212
def validate_environment!
213213
fail_with(Exploit::Failure::None, 'Already in elevated state') if is_admin? or is_system?
214-
#
215-
# Verify use against Vista+
216-
#
214+
217215
winver = sysinfo["OS"]
218216

219-
unless winver =~ /Windows Vista|Windows 2008|Windows [78]/
217+
unless winver =~ /Windows 2008|Windows [7]/
220218
fail_with(Exploit::Failure::NotVulnerable, "#{winver} is not vulnerable.")
221219
end
222220

0 commit comments

Comments
 (0)