Fix small bugs on glpi_install_rce
parent
b24ae6e80c
commit
8922d0fc7f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue