From 23448b58e7c4f5de828528e7203c664a3d4d53fd Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 25 Nov 2013 12:37:23 -0600 Subject: [PATCH] Remove timeout checkers that are rescued anyway --- modules/auxiliary/dos/http/rails_json_float_dos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/dos/http/rails_json_float_dos.rb b/modules/auxiliary/dos/http/rails_json_float_dos.rb index 7596746e3e..7a32e8b80e 100644 --- a/modules/auxiliary/dos/http/rails_json_float_dos.rb +++ b/modules/auxiliary/dos/http/rails_json_float_dos.rb @@ -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