Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better support for LM hashes in potfiles #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions max.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,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:
Expand Down Expand Up @@ -816,7 +816,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]
Expand Down