| Field | Detail |
|---|---|
| Summary | Read the Windows password policy before spraying |
| Category | Password-policy enumeration |
| Phase | enumeration |
| Interface | CLI |
| Platform | Linux |
| Licence | Open source (GPL) |
| Docs | https://labs.portcullis.co.uk/tools/polenum/ |
| Related | SMB and Active Directory enumeration, rpcclient, enum4linux, NetExec (CrackMapExec), Hydra, Kerbrute |
Retrieves the Windows/Samba password policy over SMB (via Impacket's SAMR interface) without needing a shell on the box: minimum length, complexity, lockout threshold, lockout duration/window, and password age. Small, single-purpose, and the thing you run before any password spraying so you don't lock accounts.
⚠️ Warning — Pull the policy first, always Lockout threshold + observation window decide how many guesses per account per window are safe. Running polenum first is what keeps a spray from locking out the domain. In-scope hosts only.
Usage
polenum --username test --password test123 --domain 10.10.10.5 # authenticated
polenum --username '' --password '' --domain 10.10.10.5 # null session (if allowed)
polenum 'CORP/test:test123@10.10.10.5' # impacket-style target string
polenum --username test --password test123 --protocols 445 10.10.10.5
| Flag | Purpose |
|---|---|
--username / --password |
Credentials (empty strings attempt a null session) |
--domain |
Target host/IP (despite the name, this is the target) |
--protocols |
Force 139 or 445 |
What it returns (and why it matters)
| Field | Use |
|---|---|
| Minimum password length | Shapes mask/rule attacks for John the Ripper and Hashcat |
| Password complexity | On/off — informs guess candidates |
| Lockout threshold | Max bad guesses before lockout — spray stays under this |
| Lockout observation window | How long before the bad-count resets — wait this long between rounds |
| Lockout duration | How long a locked account stays locked |
| Maximum / minimum password age | Rotation cadence (seasonal guesses like Autumn2026!) |
ℹ️ Note — A threshold of 0 means no lockout — you can spray freely (but still mind noise). Anything else: one guess per account, then wait out the observation window.
Worked example
polenum --username test --password test123 --domain 10.10.10.5
Authenticate as test and read the domain password policy. If it reports lockout threshold 5 / observation window 30 min, your safe spray is ≤4 attempts per account per 30 minutes — plan the spray in NetExec (CrackMapExec) / Kerbrute accordingly.
Kill-chain usage
Enumeration
polenum --username test --password test123 --domain 10.10.10.5 # password policy
Where it fits
A focused alternative to rpcclient's getdompwinfo, enum4linux's -P, and nxc smb --pass-pol (NetExec (CrackMapExec)) — any of them gets the policy; polenum is the dedicated one. It's the gate between enumeration and credential attacks (Hydra, Kerbrute) in the SMB and Active Directory enumeration workflow.