diff --git a/modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb b/modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb index 8d924a6d84..5170d856b6 100644 --- a/modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb +++ b/modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb @@ -82,8 +82,8 @@ class Metasploit3 < Msf::Auxiliary port = nil end - backend[:host] = (host.nil?) ? nil : host - backend[:port] = (port.nil?) ? nil : port + backend[:host] = host.nil? ? nil : host + backend[:port] = port.nil? ? nil : port backend end @@ -146,8 +146,11 @@ class Metasploit3 < Msf::Auxiliary # Reporting found backends in database unless backends.empty? - report_note(host: rhost, type: "f5_load_balancer_backends", data: backends) + report_note(host: rhost, type: 'f5_load_balancer_backends', data: backends) end + + rescue ::Rex::ConnectionRefused + print_error("#{peer} - Network connection error") rescue ::Rex::ConnectionError print_error("#{peer} - Network connection error") rescue ::OpenSSL::SSL::SSLError