Axe some copy-pasta

unstable
James Lee 2012-06-06 15:56:55 -06:00
parent 2e4231d825
commit 1fbe5742bd
1 changed files with 2 additions and 11 deletions

View File

@ -33,8 +33,8 @@ class Metasploit3 < Msf::Exploit::Local
'License' => MSF_LICENSE,
'Author' => [ 'jduck' ],
'Version' => '$Revision$',
'Platform' => [ 'windows' ],
'Arch' => [ ARCH_X86, ARCH_X86_64 ],
'Platform' => [ 'windows' ],
'SessionTypes' => [ 'meterpreter' ],
'Targets' =>
[
@ -88,16 +88,7 @@ class Metasploit3 < Msf::Exploit::Local
return
end
vuln = false
winver = sysinfo["OS"]
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008' ]
affected.each { |v|
if winver.include? v
vuln = true
break
end
}
if not vuln
if check == Exploit::CheckCode::Safe
print_error("#{winver} is not vulnerable.")
return
end