π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
jxplorernmap nse
ldap-rootdse.nse
ldap-search.nse
ldap-brute.nseldapsearch
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 baseex2
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