parent
b9a8f227fb
commit
e8ad3a98e9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue