We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef715e4 commit a263f5aCopy full SHA for a263f5a
1 file changed
modules/auxiliary/scanner/ftp/ftp_version.rb
@@ -57,8 +57,6 @@ def run_host(_target_host)
57
data: { banner: banner.strip }
58
)
59
end
60
-
61
- disconnect
62
rescue ::Rex::ConnectionRefused
63
vprint_error('Connection refused')
64
report_host(host: rhost)
@@ -67,5 +65,7 @@ def run_host(_target_host)
67
65
68
66
rescue ::Interrupt
69
raise $ERROR_INFO
+ ensure
+ disconnect
70
71
0 commit comments