Please h00die ;)
parent
2ac54f5028
commit
d9f07183bd
|
@ -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^
|
||||
|
|
Loading…
Reference in New Issue