Skip to content

Commit f5d5a1b

Browse files
committed
Use imported constants instead of redefining
1 parent bac7a34 commit f5d5a1b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
UF_DONT_REQUIRE_PREAUTH,
2222
UF_TRUSTED_FOR_DELEGATION,
2323
UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION,
24+
UF_SERVER_TRUST_ACCOUNT,
2425
)
2526
from impacket.dcerpc.v5.transport import DCERPCTransportFactory
2627
from impacket.krb5 import constants
@@ -1087,12 +1088,6 @@ def query(self):
10871088
self.logger.highlight(f"{attr:<20} {vals}")
10881089

10891090
def find_delegation(self):
1090-
# Constants for delegation types
1091-
UF_TRUSTED_FOR_DELEGATION = 0x80000
1092-
UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x1000000
1093-
UF_ACCOUNTDISABLE = 0x2
1094-
UF_SERVER_TRUST_ACCOUNT = 0x2000
1095-
10961091
def printTable(items, header):
10971092
colLen = []
10981093

0 commit comments

Comments
 (0)