Handle refused connections during axfr
parent
52d81f7e93
commit
55c8d23e1f
|
@ -410,7 +410,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
dns.nameservers -= dns.nameservers
|
dns.nameservers -= dns.nameservers
|
||||||
dns.nameservers = "#{r}"
|
dns.nameservers = "#{r}"
|
||||||
zone = dns.axfr(domain)
|
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}")
|
print_error("Query #{domain} DNS AXFR - exception: #{e}")
|
||||||
end
|
end
|
||||||
next if zone.blank?
|
next if zone.blank?
|
||||||
|
|
Loading…
Reference in New Issue