Handle refused connections during axfr

bug/bundler_fix
Jon Hart 2016-02-04 09:23:49 -08:00
parent 52d81f7e93
commit 55c8d23e1f
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ class Metasploit3 < Msf::Auxiliary
dns.nameservers -= dns.nameservers
dns.nameservers = "#{r}"
zone = dns.axfr(domain)
rescue ResolverArgumentError, Errno::ETIMEDOUT, ::NoResponseError, ::Timeout::Error => e
rescue ResolverArgumentError, Errno::ECONNREFUSED, Errno::ETIMEDOUT, ::NoResponseError, ::Timeout::Error => e
print_error("Query #{domain} DNS AXFR - exception: #{e}")
end
next if zone.blank?