Skip to content

Commit 97049a0

Browse files
authored
Merge pull request Pennyw0rth#789 from azoxlpf/fix/get-sid-kcache
fix(ldap): support get-sid and admin flag when using --use-kcache
2 parents 68e36dc + 70463e5 commit 97049a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def check_if_admin(self):
664664
resp = self.search(search_filter, attributes, sizeLimit=0, baseDN=self.baseDN)
665665
resp_parsed = parse_result_attributes(resp)
666666
answers = []
667-
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "") and self.username != "":
667+
if resp and (self.password != "" or self.lmhash != "" or self.nthash != "" or self.aesKey != "" or self.use_kcache) and self.username != "":
668668
for item in resp_parsed:
669669
self.sid_domain = "-".join(item["objectSid"].split("-")[:-1])
670670

0 commit comments

Comments
 (0)