Enumerating & Retrieving Password Policies
# getting password policy with valid domain credentials using cme tool
crackmapexec smb ip -u eren -p pass --pass-pol# Obtaining the Password Policy
# rpcclient
rpcclient -U "" -N ip
querydominfo
getdompwinfo
# enum4linux-ng
enum4linux-ng -P ip -oA ilfreight# Using ldapsearch
ldapsearch -h ip -x -b "DC=DOMAIN,DC=LOCAL" -s sub "*" | grep -m 1 -B 10 pwdHistoryLength# Using net.exe
C:\> net accounts
# Using PowerView
PS C:\> import-module .\PowerView.ps1
PS C:\> Get-DomainPolicyLast updated