Please h00die ;)

bug/bundler_fix
Julien (jvoisin) Voisin 2016-10-27 12:18:09 +02:00
parent 2ac54f5028
commit d9f07183bd
1 changed files with 11 additions and 11 deletions

View File

@ -66,19 +66,19 @@ class MetasploitModule < Msf::Exploit::Local
@executable_path
end
def check
version = cmd_exec('pkexec --version')
if version.nil?
print_error "Policykit is not installed"
return CheckCode::Safe
end
def check
version = cmd_exec('pkexec --version')
if version.nil?
print_error "Policykit is not installed"
return CheckCode::Safe
end
if version.split('.')[1].to_f <= 0.101
return CheckCode::Vulnerable
end
if Gem::Version.new(version.split('.')[1]) <= 0.101
return CheckCode::Appears
end
CheckCode::Unknown
end
CheckCode::Unknown
end
def exploit
main = %q^