8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Merge branch 'fix_pwd_ntlm' into 'dev'

fix: #339

See merge request re2o/re2o!615
This commit is contained in:
chapeau 2021-07-06 12:07:51 +00:00
commit ea4ebd5c08

View file

@ -70,7 +70,7 @@ def hashNT(password):
""" """
hash_str = hashlib.new("md4", password.encode("utf-16le")).digest() hash_str = hashlib.new("md4", password.encode("utf-16le")).digest()
return binascii.hexlify(hash_str).upper() return binascii.hexlify(hash_str).upper().decode('utf-8')
def checkPassword(challenge_password, password): def checkPassword(challenge_password, password):