spaces EOL SMH

This commit is contained in:
h00die
2020-03-24 16:01:45 -04:00
committed by h00die
parent e9e142b573
commit a4e11fd311
@@ -75,13 +75,13 @@ class MetasploitModule < Msf::Exploit::Local
return CheckCode::Safe
end
# Thanks to @ddouhine on github for this answer!
# Thanks to @ddouhine on github for this answer!
version_raw = cmd_exec "plutil -p '/Applications/VMware Fusion.app/Contents/Info.plist' | grep CFBundleShortVersionString"
/=> "(?<version>\d{0,2}\.\d{0,2}\.\d{0,2})"/ =~ version_raw #supposed 11.x is also vulnerable, but everyone whos tested shows 11.5.1 or 11.5.2
version = Gem::Version.new(version)
if version.between?(Gem::Version.new('11.5.0'), Gem::Version.new('11.5.2'))
vprint_good "Vmware Fusion #{version} is exploitable"
else
else
print_bad "VMware Fusion #{version} is NOT exploitable"
return CheckCode::Safe
end