pentesting, updated
Enumerate domain objects
Build an initial inventory of users, groups, computers and OUs from a foothold with any valid domain credential.
Goal
Establish who and what exists in the domain, as the base inventory every later attack path decision draws from.
How to test
nxc ldap 10.10.10.5 -u jdoe -p Password1 --users --groups --computers # see [NetExec](/docs/pentest-cheatsheets/tools/network/netexec)
ldapsearch -x -H ldap://10.10.10.5 -D "jdoe@corp.local" -w Password1 \
-b "DC=corp,DC=local" "(objectClass=computer)" dNSHostName operatingSystem
net user /domain # from a joined/authenticated Windows host
Get-ADUser -Filter * -Properties * # from a host with RSAT/ActiveDirectory module
What to look for
Service accounts (often over-privileged and with non-expiring passwords), disabled accounts still in privileged groups, and computer objects that reveal unpatched or legacy operating systems.
Notes
This overlaps with SMB, LDAP and RPC enumeration from the Network discipline — this check is the AD-specific follow-up once you have at least one valid credential.