ðPort 389 (LDAP)
Lightweight Directory Access protocol(ldap)
Scans
nmap -n -sV --script "ldap* and not brute"
ldapsearch -h <IP> -x -s base
ldapsearch -h <IP> -x -D '<DOMAIN>\<USER>' -w '<PASSWORD>' -b "DC=<1_SUBDOMAIN>,DC=<TDL>"
Graphical Interface
jxplorer
nmap nse
ldap-rootdse.nse
ldap-search.nse
ldap-brute.nse
ldapsearch
ldapsearch -h 10.10.xx.xx -p 389 -x -s base -b '' "(objectClass=*)" "*" +
-h ldap server
-p port of ldap
-x simple authentication
-b search base
-s scope is defined as base
ex2
ldapsearch -x -h 10.10.10.100 -p 389 -D â 'SVC_TGS'â -w â 'GPPstillStandingStrong2k18' -b â "dc=active,dc=htb"â -s sub "(&(objectCategory=person)(objectClass=user)(!(useraccountcontrol:1.2.840.113556.1. 4.803:=2)))"â samaccountname | grep sAMAccountName
Last updated