diff --git a/modules/auxiliary/scanner/openvas/openvas_otp_login.rb b/modules/auxiliary/scanner/openvas/openvas_otp_login.rb index a2d3bfa1fb..acca02b492 100644 --- a/modules/auxiliary/scanner/openvas/openvas_otp_login.rb +++ b/modules/auxiliary/scanner/openvas/openvas_otp_login.rb @@ -106,7 +106,7 @@ class Metasploit3 < Msf::Auxiliary vprint_error("#{msg} Rejected user: '#{user}' with password: '#{pass}': #{@result}") return :fail end - rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout + rescue ::Rex::ConnectionError rescue ::Timeout::Error, ::Errno::EPIPE end end