Skip to content

Commit 8c54b0e

Browse files
committed
Land rapid7#7622, Fix check_conn? method in cisco_ironport_enum
2 parents a7fa294 + 777d5c1 commit 8c54b0e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/auxiliary/scanner/http/cisco_ironport_enum.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ def check_conn?
6060
'uri' => '/',
6161
'method' => 'GET'
6262
})
63-
print_good("#{rhost}:#{rport} - Server is responsive...")
64-
return 1
63+
if res
64+
print_good("#{rhost}:#{rport} - Server is responsive...")
65+
return true
66+
else
67+
return false
68+
end
6569
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError, ::Errno::EPIPE
66-
return
70+
return false
6771
end
6872
end
6973

0 commit comments

Comments
 (0)