From 041645aed9e0b0c95dfbb2f94d902c4142d6af71 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Sun, 24 Mar 2024 02:46:58 +0100 Subject: [PATCH] Fix ldap not reporting DA when using hash login --- nxc/protocols/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/protocols/ldap.py b/nxc/protocols/ldap.py index 52ec675a..4f684027 100644 --- a/nxc/protocols/ldap.py +++ b/nxc/protocols/ldap.py @@ -661,7 +661,7 @@ class ldap(connection): attributes = ["objectSid"] resp = self.search(search_filter, attributes, sizeLimit=0) answers = [] - if resp and self.password != "" and self.username != "": + if resp and (self.password != "" or self.lmhash != "" or self.nthash != "") and self.username != "": for attribute in resp[0][1]: if str(attribute["type"]) == "objectSid": sid = self.sid_to_str(attribute["vals"][0])