Lightweight Directory Access Protocol (LDAP)
1) Nmap scan
nmap -n -sV --script "ldap* and not brute" IP2) Ldapsearch
ldapsearch -x -H ldap://IPldapsearch -h IP -x -s baseldapsearch -x -H ldap://IP -s base namingcontextsldapsearch -x -H ldap://IP -b "DC=<domain>,DC=<tld>"ldapsearch -v -x -b "DC=<domain>,DC=<tld>" -H "ldap://IP" "(objectclass=*)"ldapsearch -v -x -b "DC=<domain>,DC=<tld>" -H "ldap://IP" "(objectclass*)" | grep sAMAccountName:3) Check Pre-Authentication for Usaers
4) LDAP Queries
Search Terms to Find Cleartext Passwords
General LDAP Filters
Search for Users with Specific Attributes
Specific Attributes
Security-Related searches
Other useful searches
PreviousJava Remote Management Interface (RMI) Penetration TestingNextMan in the Middle Attack (MitM)
Last updated