Fix from David Kennedy, enable Windows 8 support

bug/bundler_fix
HD Moore 2013-04-09 02:07:40 -05:00
parent f96126aeb7
commit e2b8d5ed23
2 changed files with 3 additions and 15 deletions

View File

@ -56,14 +56,8 @@ class Metasploit3 < Msf::Exploit::Local
# #
vuln = false vuln = false
winver = sysinfo["OS"] winver = sysinfo["OS"]
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008', 'Windows 8' ] if winver !~ /Windows Vista|Windows 2008|Windows [78]/
affected.each { |v| print_error("#{winver} is not vulnerable.")
if winver.include? v
vuln = true
end
}
if not vuln
print_error("#{winver} does not have UAC")
return return
end end

View File

@ -43,13 +43,7 @@ class Metasploit3 < Msf::Post
vuln = false vuln = false
sysinfo = session.sys.config.sysinfo sysinfo = session.sys.config.sysinfo
winver = sysinfo["OS"] winver = sysinfo["OS"]
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008', 'Windows 8' ] if winver !~ /Windows Vista|Windows 2008|Windows [78]/
affected.each { |v|
if winver.include? v
vuln = true
end
}
if not vuln
print_error("#{winver} is not vulnerable.") print_error("#{winver} is not vulnerable.")
return return
end end