Skip to content

Commit 2e01eb5

Browse files
committed
Do minor fixes
1 parent 5588ad3 commit 2e01eb5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def cookie_decode(cookie_value)
8282
port = nil
8383
end
8484

85-
backend[:host] = (host.nil?) ? nil : host
86-
backend[:port] = (port.nil?) ? nil : port
85+
backend[:host] = host.nil? ? nil : host
86+
backend[:port] = port.nil? ? nil : port
8787
backend
8888
end
8989

@@ -146,8 +146,11 @@ def run
146146

147147
# Reporting found backends in database
148148
unless backends.empty?
149-
report_note(host: rhost, type: "f5_load_balancer_backends", data: backends)
149+
report_note(host: rhost, type: 'f5_load_balancer_backends', data: backends)
150150
end
151+
152+
rescue ::Rex::ConnectionRefused
153+
print_error("#{peer} - Network connection error")
151154
rescue ::Rex::ConnectionError
152155
print_error("#{peer} - Network connection error")
153156
rescue ::OpenSSL::SSL::SSLError

0 commit comments

Comments
 (0)