Fix from David Kennedy, enable Windows 8 support
parent
f96126aeb7
commit
e2b8d5ed23
|
@ -56,14 +56,8 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
#
|
||||
vuln = false
|
||||
winver = sysinfo["OS"]
|
||||
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008', 'Windows 8' ]
|
||||
affected.each { |v|
|
||||
if winver.include? v
|
||||
vuln = true
|
||||
end
|
||||
}
|
||||
if not vuln
|
||||
print_error("#{winver} does not have UAC")
|
||||
if winver !~ /Windows Vista|Windows 2008|Windows [78]/
|
||||
print_error("#{winver} is not vulnerable.")
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -43,13 +43,7 @@ class Metasploit3 < Msf::Post
|
|||
vuln = false
|
||||
sysinfo = session.sys.config.sysinfo
|
||||
winver = sysinfo["OS"]
|
||||
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008', 'Windows 8' ]
|
||||
affected.each { |v|
|
||||
if winver.include? v
|
||||
vuln = true
|
||||
end
|
||||
}
|
||||
if not vuln
|
||||
if winver !~ /Windows Vista|Windows 2008|Windows [78]/
|
||||
print_error("#{winver} is not vulnerable.")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue