Update modules/exploits/windows/http/hp_imc_java_deserialize.rb
Fixed if/else block return Co-Authored-By: carmaa <carsten@carmaa.com>GSoC/Meterpreter_Web_Console
parent
680393d4d6
commit
709befea5c
|
@ -80,7 +80,12 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
t2 = Time.now.to_i
|
||||
|
||||
diff = t2 - t1
|
||||
if res && res.code == 500 && res.body.include?('HPE Intelligent Management Center') && diff >= 10
|
||||
unless res
|
||||
vprint_error 'Connection failed'
|
||||
return CheckCode::Detected
|
||||
end
|
||||
|
||||
if res.code == 500 && res.body.include?('HPE Intelligent Management Center') && diff >= 10
|
||||
print_good("Response received after #{diff} seconds.")
|
||||
return CheckCode::Vulnerable
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue