Skip to content

Commit

Permalink
Fix int.to_bytes use default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac authored Apr 3, 2024
1 parent 9aa9373 commit 3e5f85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impacket/ntlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ def convertPwToLM(password):
for c in password:
v = ord(c)
if v > 0 and v < 255:
ret += int.to_bytes(LM_ARRAY_CONVERT[v])
ret += int.to_bytes(LM_ARRAY_CONVERT[v], length=1, byteorder="big")
for val in LM_ARRAY_CONVERT2:
if val == v:
ret += int.to_bytes(val)
ret += int.to_bytes(val, length=1, byteorder="big")
return ret

def NTOWFv1(password, lmhash = '', nthash=''):
Expand Down

0 comments on commit 3e5f85b

Please sign in to comment.