Skip to content

Commit 509f31f

Browse files
committed
update passpol
1 parent d6e0607 commit 509f31f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nxc/helpers/misc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def detect_if_ip(target):
150150

151151
def d2b(a):
152152
"""
153-
This function is used to convert password property flags from decimal to binary
153+
Function used to convert password property flags from decimal to binary
154154
format for easier interpretation of individual flag bits.
155155
"""
156156
tbin = []
@@ -168,16 +168,16 @@ def d2b(a):
168168
def convert(low, high, lockout=False):
169169
"""
170170
Convert Windows FILETIME (64-bit) values to human-readable time strings.
171-
171+
172172
Windows stores time intervals as 64-bit values representing 100-nanosecond
173173
intervals since January 1, 1601. This function converts these values to
174174
readable format like "30 days 5 hours 15 minutes".
175-
175+
176176
Args:
177177
low (int): Low 32 bits of the FILETIME value
178-
high (int): High 32 bits of the FILETIME value
178+
high (int): High 32 bits of the FILETIME value
179179
lockout (bool): If True, treats the value as a lockout duration (simpler conversion)
180-
180+
181181
Returns:
182182
str: Human-readable time string (e.g., "42 days 5 hours 30 minutes") or
183183
special values like "Not Set", "None", or "[-] Invalid TIME"

0 commit comments

Comments
 (0)