catch connectionreset in ftp login scanner
add exception rescue for Errno::ECONNRESETbug/bundler_fix
parent
4fc1ec09c7
commit
0663355237
|
@ -41,7 +41,7 @@ module Metasploit
|
||||||
|
|
||||||
begin
|
begin
|
||||||
success = connect_login(credential.public, credential.private)
|
success = connect_login(credential.public, credential.private)
|
||||||
rescue ::EOFError, Rex::AddressInUse, Rex::ConnectionError, Rex::ConnectionTimeout, ::Timeout::Error
|
rescue ::EOFError, Errno::ECONNRESET, Rex::AddressInUse, Rex::ConnectionError, Rex::ConnectionTimeout, ::Timeout::Error
|
||||||
result_options[:status] = Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
|
result_options[:status] = Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
|
||||||
success = false
|
success = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue