Fix small bugs on glpi_install_rce

bug/bundler_fix
jvazquez-r7 2013-09-20 13:01:41 -05:00
parent b24ae6e80c
commit 8922d0fc7f
1 changed files with 7 additions and 6 deletions

View File

@ -72,10 +72,11 @@ class Metasploit3 < Msf::Exploit::Remote
if matched and matched[3] =~ /0.(8[0-4].[0-1])|([0-7][0-9].[0-9])/
print_good("Detected Version : #{matched[3]}")
return Exploit::CheckCode::Appears
else
elsif matched
print_error("Version #{matched[3]} is not vulnerable")
return Exploit::CheckCode::Safe
end
return Exploit::CheckCode::Safe
end
def exploit
@ -94,7 +95,7 @@ class Metasploit3 < Msf::Exploit::Remote
}
})
unless res and res.code == 200 and res.body !~ /You will update the GLPI database/
unless res and res.code == 200 and res.body =~ /You will update the GLPI database/
print_warning("Unexpected response while injecting the payload, trying to execute anyway...")
end