Throw Unknown if connection times out
parent
5073d3201f
commit
333229ea7e
|
@ -71,7 +71,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'uri' => "/cpqlogin.htm"
|
||||
})
|
||||
|
||||
if res and res.code == 200 and res.body =~ /"HP System Management Homepage v(.*)"/
|
||||
if res.nil?
|
||||
vprint_error("Connection timed out")
|
||||
return Exploit::CheckCode::Unknown
|
||||
elsif res.code == 200 and res.body =~ /"HP System Management Homepage v(.*)"/
|
||||
version = $1
|
||||
return Exploit::CheckCode::Appears if version <= "7.1.1.1"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue