Domain Enumeration
Tags:powershellActive-Directory Related to:hackingbug-bountyTCMcrtposcpenumeration See also: Introduction to Active Directory Enumeration Cheatsheet AD Index: 🗂️ Index of CRTP
Summary
Introduction and techniques of Domain Enumeration
Domain Enumeration
Mapping of various entities, trusts, relationships and privilages for the target domain.
Check privileges of current user in Powershell
whoami /priv
How to enumerate domain? (Method 1 - .NET Classes)
$ADClass = [System.DirectoryServices.ActiveDirectory.Domain]
$ADClass::GetCurrentDomain()
How to enumerate domain? (Using Powerview)
How to enumerate domain? (Using Microsoft AD Module)
Advantages of AD Module over Powerview
- Less chance of Antivirus detection
- Works well in constrained-language mode
Tips
- Install tools in a folder in C drive (for eg:
C:\AD\Tools
) to prevent Anti Virus detection. - Microsoft AD Module is preferable over Powerview as AD module is a tool by Microsoft and is less likely to be detected by Anti Virus.