Reconnaissance and Enumeration
A tester wants to query an LDAP directory for user and group entries. Which tool BEST does this?
Show the answer
Correct answerB. ldapsearch
AWhy not this: It requests a DNS zone transfer, which has nothing to do with LDAP.
BWhy this is right: It speaks LDAP and returns directory entries such as users and groups.
CWhy not this: It brute-forces web directories and files over HTTP, not directory service entries.
DWhy not this: It lists SMB shares, which is share enumeration over a different protocol.
ldapsearch speaks LDAP and retrieves directory entries such as users and groups. smbclient -L lists SMB shares, which is a different protocol and a different goal.