From e67e7032a50655986a8d8f6d4e9ec1ca48fe735e Mon Sep 17 00:00:00 2001 From: Aidan Stansfield Date: Tue, 1 Mar 2022 12:05:17 +1000 Subject: [PATCH] better support for LM hashes in potfiles --- max.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/max.py b/max.py index be10f56..7c8f36f 100644 --- a/max.py +++ b/max.py @@ -718,9 +718,9 @@ def dpat_map_users(args, users, potfile): if nt_hash in potfile: cracked_bool = 'true' password = potfile[nt_hash] - elif lm_hash != "aad3b435b51404eeaad3b435b51404ee" and lm_hash in potfile: + elif lm_hash != "aad3b435b51404eeaad3b435b51404ee" and lm_hash[:16] in potfile and lm_hash[16:] in potfile: cracked_bool = 'true' - password = potfile[lm_hash] + password = potfile[lm_hash[:16]] + potfile[lm_hash[16:]] if password != None: if "$HEX[" in password: @@ -811,7 +811,7 @@ def dpat_func(args): continue line = line.split(":") - if len(line[0]) != 32: + if len(line[0]) not in [16, 32]: continue potfile[line[0]] = line[1]