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 111e3fc commit 855cadcCopy full SHA for 855cadc
lib/metasploit/framework/login_scanner/http.rb
@@ -208,11 +208,7 @@ def send_request(opts)
208
cli.connect
209
req = cli.request_cgi(opts)
210
res = cli.send_recv(req)
211
- rescue ::Errno::EPIPE, ::Timeout::Error => e
212
- # We are trying to mimic the same type of exception rescuing in
213
- # Msf::Exploit::Remote::HttpClient. But instead of returning nil, we'll consistently
214
- # raise Rex::ConnectionError so the #attempt_login can return the error message back
215
- # to the login module.
+ rescue ::EOFError, Errno::ETIMEDOUT, Rex::ConnectionError, ::Timeout::Error => e
216
raise Rex::ConnectionError, e.message
217
ensure
218
cli.close
0 commit comments