Simplify rescue handler
parent
d968a33e14
commit
a5db9331bc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue