Attacks and Exploits
A tester with a domain user account wants a list of all enabled accounts in a particular organizational unit, using only built-in Windows capabilities. Which approach BEST achieves this?
Show the answer
Correct answerA. An LDAP query of Active Directory with a filter and search base
AWhy this is right: LDAP searches read directory objects, and a base and filter narrow results to enabled users in an OU.
BWhy not this: AD is not queried through SQL; directory data is accessed through LDAP.
CWhy not this: Password spraying guesses credentials and is noisy; it does not list accounts.
DWhy not this: A scan of port 445 reveals SMB availability, not account lists or their enabled status.
Active Directory is queried over LDAP, and a search base plus filter can limit results to enabled user objects in one OU; built-in tools such as the ActiveDirectory module or ADSI can do this. A port scan only shows open services and returns no account data.