Skip to content

Commit 9b17191

Browse files
committed
Remove unnecessary {,dis}connect
1 parent 28e661e commit 9b17191

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/auxiliary/scanner/http/ssl_version.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def initialize
5252
# Fingerprint a single host
5353
def run_host(ip)
5454
begin
55-
connect
5655
res = send_request_raw({ 'uri' => '/', 'method' => 'GET' })
5756
fp = http_fingerprint(:response => res)
5857
if fp
@@ -67,9 +66,6 @@ def run_host(ip)
6766
rescue ::OpenSSL::SSL::SSLError => e
6867
ssl_version = e.message.match(/ state=([^\s]+)/)[1]
6968
vprint_status("#{peer} does not accept #{ssl_version}")
70-
rescue ::Timeout::Error, ::Errno::EPIPE
71-
ensure
72-
disconnect
7369
end
7470
end
7571

0 commit comments

Comments
 (0)