-
Notifications
You must be signed in to change notification settings - Fork 14
LDAP
Alvin Smith edited this page Nov 10, 2023
·
4 revisions
https://book.hacktricks.xyz/pentesting/pentesting-ldap#hacktricks-automatic-commands
ldapsearch -H ldap://hope.windcorp.htb -b "DC=WINDCORP,DC=HTB" sAMAccountName "CN=Users,DC=windcorp,DC=HTB" | grep sAMAccountName | awk '{print $2}' > domainusers
ldapsearch -H ldap://$IP -x -b "DC=cascade,DC=local" -s sub "(&(objectClass=user))" | grep -i samaccountname: | cut -f2 -d" " > ldapsearch_user.txt
proxychains /home/alvin/Tools/windapsearch/windapsearch.py -d hope.windcorp.htb --dc-ip 192.168.0.2 -m users --full -u scriptrunner -p '!@p%i&J#iNNo1T2'