AD info
Domain name
Domain SID
Forests
Users of a domain in the forest can also access to the other domains.
Functional ModesTrusts
The trust direction is the opposite to the access direction. Incoming trusts allow users of your domain to access the other domain. If Domain A trusts Domain B, then Domain B can access the ressources of Domain B.
nltest /domain_trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
// PowerView
Get-DomainTrust -API
Trusts accounts (used to store the trust keys which are NT hash or Kerberos keys)
Users accounts
Each computer of the domain has its own user stored as computer class (subclass of user class).# Retrieve all users of the domain including computers and trusts
Get-ADObject -LDAPFilter "objectClass=User" -Properties SamAccountName | select SamAccountName
Groups
Domain Controllers
Database location
Discovery
Computers discovery
ldapsearch -H ldap://192.168.100.2 -x -LLL -W -D "anakin@contoso.local" -b "dc=contoso,dc=local" "(objectclass=computer)" "DNSHostName" "OperatingSystem`
BloodHound
Collectors : - https://github.com/BloodHoundAD/BloodHound/tree/master/Collectors