Skip to content

Commit da7c507

Browse files
authored
Merge pull request Pennyw0rth#126 from Kahvi-0/main
--kerberoast Improvement
2 parents cd0d3c8 + 72eeb7e commit da7c507

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def asreproast(self):
942942

943943
def kerberoasting(self):
944944
# Building the search filter
945-
searchFilter = "(&(servicePrincipalName=*)(UserAccountControl:1.2.840.113556.1.4.803:=512)(!(UserAccountControl:1.2.840.113556.1.4.803:=2))(!(objectCategory=computer)))"
945+
searchFilter = "(&(servicePrincipalName=*)(!(objectCategory=computer)))"
946946
attributes = [
947947
"servicePrincipalName",
948948
"sAMAccountName",
@@ -993,7 +993,7 @@ def kerberoasting(self):
993993

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

0 commit comments

Comments
 (0)