Wh1t3Fox / polenum

Uses Core's Impacket Library to get the password policy from a windows machine
GNU General Public License v3.0
33 stars 14 forks source link

Password Policy Enumeration Results Printout Error #5

Closed AzraelSec closed 7 years ago

AzraelSec commented 7 years ago

The variable assignments on lines 51 and 52 should be moved to the outside if statement. The correct piece of code should be like this:

if not lockout:
        if (low != 0):
            high = abs(high+1)
        else:
            high = abs(high)
            low = abs(low)

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

Otherwise the tmp variable would not be initialized and the rest of the code would not correctly interpret the data.

Wh1t3Fox commented 7 years ago

Good catch :+1: