Skip to content

Commit 54684d3

Browse files
committed
Land rapid7#7641, check_conn? fix for cisco_ssl_vpn
2 parents 1d6ee71 + 032312d commit 54684d3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

modules/auxiliary/scanner/http/cisco_ironport_enum.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ def check_conn?
6363
if res
6464
print_good("#{rhost}:#{rport} - Server is responsive...")
6565
return true
66-
else
67-
return false
6866
end
6967
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError, ::Errno::EPIPE
70-
return false
7168
end
69+
false
7270
end
7371

7472
#

modules/auxiliary/scanner/http/cisco_ssl_vpn.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,17 @@ def run_host(ip)
8383
def check_conn?
8484
begin
8585
res = send_request_cgi('uri' => '/', 'method' => 'GET')
86-
vprint_good("Server is responsive...")
86+
if res
87+
vprint_good("Server is responsive...")
88+
return true
89+
end
8790
rescue ::Rex::ConnectionRefused,
8891
::Rex::HostUnreachable,
8992
::Rex::ConnectionTimeout,
9093
::Rex::ConnectionError,
9194
::Errno::EPIPE
92-
return
9395
end
96+
false
9497
end
9598

9699
def enumerate_vpn_groups

0 commit comments

Comments
 (0)