Remove timeout checkers that are rescued anyway

bug/bundler_fix
Tod Beardsley 2013-11-25 12:37:23 -06:00
parent f311b0cd1e
commit 23448b58e7
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class Metasploit3 < Msf::Auxiliary
rescue ::Rex::HostUnreachable
print_error "#{peer} - Unable to connect. (Host unreachable)"
target_available = false
rescue ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE
rescue ::Rex::ConnectionTimeout
print_error "#{peer} - Unable to connect. (Timeout)"
target_available = false
end
@ -117,7 +117,7 @@ class Metasploit3 < Msf::Auxiliary
print_good "#{peer}#{uri} - DoS appears successful (No useful response from host)"
target_available = false
end
rescue ::Rex::ConnectionError, ::Timeout::Error, ::Errno::EPIPE, Errno::ECONNRESET
rescue ::Rex::ConnectionError, Errno::ECONNRESET
print_good "#{peer} - DoS appears successful (Host unreachable)"
target_available = false
end