From e8ad3a98e9e8454ee55904aad0882146b348756e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 15 Feb 2018 15:54:23 -0600 Subject: [PATCH] Land #9558, Fix #9417, map timeout exp to a var for telnet_encrypt_overflow --- modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb b/modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb index 474caddd27..c3bae3bee5 100644 --- a/modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb +++ b/modules/auxiliary/scanner/telnet/telnet_encrypt_overflow.rb @@ -127,7 +127,7 @@ class MetasploitModule < Msf::Auxiliary rescue ::Rex::ConnectionError, ::Errno::ECONNRESET => e print_error("A network issue has occurred: #{e.message}") elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") - rescue Timeout::Error + rescue Timeout::Error => e print_error("#{target_host}:#{rport} Timed out after #{to} seconds") elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") rescue ::Exception => e