Simplify rescue handler

unstable
Vlatko Kosturjak 2012-11-24 00:15:39 +01:00
parent d968a33e14
commit a5db9331bc
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Metasploit3 < Msf::Auxiliary
vprint_error("#{msg} Rejected user: '#{user}' with password: '#{pass}': #{@result}") vprint_error("#{msg} Rejected user: '#{user}' with password: '#{pass}': #{@result}")
return :fail return :fail
end end
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout rescue ::Rex::ConnectionError
rescue ::Timeout::Error, ::Errno::EPIPE rescue ::Timeout::Error, ::Errno::EPIPE
end end
end end