We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb668ca commit dece6b0Copy full SHA for dece6b0
1 file changed
nxc/protocols/ldap.py
@@ -1648,7 +1648,11 @@ def bloodhound(self):
1648
self.logger.highlight("Resolved collection methods: " + ", ".join(list(collect)))
1649
1650
self.logger.debug("Using DNS to retrieve domain information")
1651
- ad.dns_resolve(domain=self.domain)
+ try:
1652
+ ad.dns_resolve(domain=self.domain)
1653
+ except resolver.LifetimeTimeout:
1654
+ self.logger.fail("Bloodhound-python failed to resolve domain information, try specifying the DNS server.")
1655
+ return None
1656
1657
if self.args.kerberos:
1658
self.logger.highlight("Using kerberos auth without ccache, getting TGT")
0 commit comments