We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8293d1 commit 725c96fCopy full SHA for 725c96f
1 file changed
nxc/protocols/ldap.py
@@ -805,6 +805,11 @@ def active_users(self):
805
def asreproast(self):
806
if self.password == "" and self.nthash == "" and self.kerberos is False:
807
return False
808
+
809
+ # If kdcHost isn't set, use the target IP for DNS resolution
810
+ if not self.kdcHost:
811
+ self.kdcHost = self.host
812
813
# Building the search filter
814
search_filter = "(&(UserAccountControl:1.2.840.113556.1.4.803:=%d)(!(UserAccountControl:1.2.840.113556.1.4.803:=%d))(!(objectCategory=computer)))" % (UF_DONT_REQUIRE_PREAUTH, UF_ACCOUNTDISABLE)
815
attributes = [
0 commit comments