Skip to content

Commit

Permalink
Update ldap.py (#7)
Browse files Browse the repository at this point in the history
Removed condition checks to see whether 'nthash' and 'lmhash' are not 'None'.
  • Loading branch information
juanhundo authored Feb 20, 2024
1 parent e683809 commit a167c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sectools/windows/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init_ldap_connection(target, tls_version, domain, username, password, lmha
aeskey=aeskey,
kdcHost=kdcHost
)
elif any([nthash is not None, len(nthash) != 0, lmhash is not None, len(lmhash) != 0]):
elif any([len(nthash) != 0, len(lmhash) != 0]):
if any([lmhash is None, len(lmhash) == 0]):
lmhash = "aad3b435b51404eeaad3b435b51404ee"
if any([nthash is None, len(lmhash) == 0]):
Expand Down

0 comments on commit a167c23

Please sign in to comment.