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