Skip to content

Commit

Permalink
Merge pull request #126 from Kahvi-0/main
Browse files Browse the repository at this point in the history
--kerberoast Improvement
  • Loading branch information
NeffIsBack authored Apr 2, 2024
2 parents cd0d3c8 + 72eeb7e commit da7c507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nxc/protocols/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ def asreproast(self):

def kerberoasting(self):
# Building the search filter
searchFilter = "(&(servicePrincipalName=*)(UserAccountControl:1.2.840.113556.1.4.803:=512)(!(UserAccountControl:1.2.840.113556.1.4.803:=2))(!(objectCategory=computer)))"
searchFilter = "(&(servicePrincipalName=*)(!(objectCategory=computer)))"
attributes = [
"servicePrincipalName",
"sAMAccountName",
Expand Down Expand Up @@ -993,7 +993,7 @@ def kerberoasting(self):

if mustCommit is True:
if int(userAccountControl) & UF_ACCOUNTDISABLE:
self.logger.debug(f"Bypassing disabled account {sAMAccountName} ")
self.logger.highlight(f"Bypassing disabled account {sAMAccountName} ")
else:
answers += [[spn, sAMAccountName, memberOf, pwdLastSet, lastLogon, delegation] for spn in SPNs]
except Exception as e:
Expand Down

0 comments on commit da7c507

Please sign in to comment.