Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 562 Bytes

ldap.md

File metadata and controls

27 lines (18 loc) · 562 Bytes

ldap

get nse :

nmap -p 389 -sV --script ldap-rootdse <ip>

search for entries :

ldapsearch -x -H ldap://<ip> -b dc=lightweight,dc=htb -D "uid=ldapuser,ou=People,dc=lightweight,dc=htb"  -w "<password>"

with nmap

Get root :

nmap -p 389 -sV --script ldap-search --script-args 'ldap.username="uid=ldapuser1,ou=People,dc=lightweight,dc=htb",ldap.password=<password>' <ip>

links