Skip to content

Commit 87a5c36

Browse files
authored
Merge pull request Pennyw0rth#611 from shikatano/pre2k-passwd-length
modified the password used in pre2k.py for machine names longer than …
2 parents 6de6247 + 4cd4dbb commit 87a5c36

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)