Skip to content

Commit 4cd4dbb

Browse files
committed
modified the password used in pre2k.py for machine names longer than 14 characters
1 parent 6de6247 commit 4cd4dbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/pre2k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def on_login(self, context, connection):
9494
def get_tgt(self, context, username, domain, kdcHost, ccache_base_dir):
9595
try:
9696
userName = Principal(username, type=constants.PrincipalNameType.NT_PRINCIPAL.value)
97-
password = username # Password is the machine name in lowercase
97+
password = username[:14] # Password is the first 14 characters of the machine name in lowercase
9898
context.log.info(f"Getting TGT for {username}@{domain}")
9999

100100
tgt, cipher, oldSessionKey, sessionKey = getKerberosTGT(

0 commit comments

Comments
 (0)