LDAP Enumeration
Tools: nmap , ldapsearch, netexec
1) Nmap
nmap -n -sV --script "ldap* and not brute" -p 389 DC_IP2) ldapsearch
ldapsearch -v -x -b "DC=domain,DC=local" -H "ldap://DC_IP" "(objectclass=*)"3) Netexec
nxc ldap -u USER -p PASS --usersnxc ldap IP -u USER -p PASS -M get-userPasswordnxc ldap <hostname> -u <user> -p <pass> -M get-desc-usersIf we find a valid user or sensitive information, we can try techniques by using that info
Last updated