Land #9558, Fix #9417, map timeout exp to a var for telnet_encrypt_overflow

4.x
Brent Cook 2018-02-15 15:54:23 -06:00 committed by Metasploit
parent b9a8f227fb
commit e8ad3a98e9
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class MetasploitModule < Msf::Auxiliary
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET => e rescue ::Rex::ConnectionError, ::Errno::ECONNRESET => e
print_error("A network issue has occurred: #{e.message}") print_error("A network issue has occurred: #{e.message}")
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") 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") print_error("#{target_host}:#{rport} Timed out after #{to} seconds")
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}")
rescue ::Exception => e rescue ::Exception => e