Enumeration using ADSI
Enumeration using BloodHound
You can spray some unauthenticated SMB requests around a network to discover hosts. This will reveal the hosts' NetBIOS names, from which you may able to identify domain controllers and servers. For example, a domain controller may be named something DC01
.
First identify the DNS server, from nslookup response, used by our machine, if we are in VPN or inside LAN:
nslookup google.com
crackmapexec smb 10.10.10.0/24
<aside> ℹ️
The root DSE is the entry at the top of the LDAP server directory information tree. All the namingcontexts (suffixes) in the LDAP server are directly below the root DSE. The root DSE contains information about the LDAP server, including the namingcontexts that are configured and the capabilities of the server.
</aside>
sudo nmap -Pn -T4 -p 389,636 --script ldap-rootdse DC.IP | grep dnsHostName | sort -u