Skip to content

Commit

Permalink
Fix #564
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed Feb 11, 2025
1 parent 8046495 commit 5e14bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nxc/protocols/smb/passpol.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def convert(low, high, lockout=False):
time = ""
tmp = 0

if low == 0 and hex(high) == "-0x80000000":
if low == 0 and high == -0x8000_0000 or low == 0 and high == -0x8000_0000_0000_0000:
return "Not Set"
if low == 0 and high == 0:
return "None"
Expand All @@ -35,7 +35,7 @@ def convert(low, high, lockout=False):
high = abs(high)
low = abs(low)

tmp = low + (high) * 16**8 # convert to 64bit int
tmp = low + (high << 32) # convert to 64bit int
tmp *= 1e-7 # convert to seconds
else:
tmp = abs(high) * (1e-7)
Expand Down

0 comments on commit 5e14bae

Please sign in to comment.