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
Brendan Coles 2018-11-16 20:19:23 +01:00 committed by GitHub
parent 680393d4d6
commit 709befea5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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