Certified Ethical Hacker (CEH) Practice Question

During reconnaissance you have confirmed that anonymous LDAP binds are allowed on 10.10.10.5, a domain controller. Before enumerating users, you want to discover the directory's base DN by querying the RootDSE entry for its namingContexts attribute using ldapsearch from your Kali box. Which command will return that information without requiring credentials?

  • ldapsearch -x -H ldap://10.10.10.5 -b "" -s base namingContexts

  • ldapsearch -x -H ldap://10.10.10.5 -b "DC=corp,DC=local" -s base namingContexts

  • ldapsearch -x -H ldap://10.10.10.5 -b "root" -s base namingContexts

  • ldapsearch -x -H ldap://10.10.10.5 -b "CN=Users,DC=corp,DC=local" -s sub namingContexts

Certified Ethical Hacker (CEH)
Reconnaissance Techniques
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot