Credentialed Enumeration From Windows
Active Directory Credentialed Enumeration (Windows)
1οΈβ£ PowerShell & Active Directory Module
PowerShellβs built-in ActiveDirectory module provides essential tools for querying and managing Active Directory objects.
Loading the Module
Get-Moduleβ Lists available PowerShell modulesImport-Module ActiveDirectoryβ Loads the Active Directory module if not already imported
Domain & User Enumeration
Get-ADDomainβ Displays general domain informationGet-ADTrust -Filter *β Checks for domain trust relationshipsGet-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalNameβ Identifies Kerberoastable accountsGet-ADGroup -Filter * | Select-Object Nameβ Lists all AD groupsGet-ADGroup -Identity "Administrators"β Retrieves details of a specific groupGet-ADGroupMember -Identity "Domain Admins"β Lists members of a specified group
2οΈβ£ PowerView
PowerView is a robust PowerShell tool used for Active Directory reconnaissance.
Basic Enumeration Commands
Get-Domainβ Retrieves details about the Active Directory domainGet-DomainUserβ Lists users in the domainGet-DomainComputerβ Enumerates domain-joined computersGet-DomainControllerβ Identifies domain controllersGet-DomainGroupβ Lists all domain groupsGet-DomainOUβ Enumerates Organizational Units (OUs)Find-InterestingDomainAclβ Detects modification rights in domain ACLs
Privilege & Access Enumeration
Find-DomainUserLocationβ Identifies machines where users are logged inFind-DomainShareβ Discovers accessible file shares in the domainFind-InterestingDomainShareFileβ Searches for potentially sensitive files in sharesTest-AdminAccessβ Verifies administrative privileges on a remote machine
Trust & Group Membership Analysis
Get-DomainTrustβ Retrieves domain trust relationshipsGet-ForestTrustβ Identifies forest-level trust relationshipsGet-DomainForeignUserβ Lists users who belong to groups outside their primary domainGet-DomainForeignGroupMemberβ Finds groups with members from outside domainsGet-DomainTrustMappingβ Maps domain trust relationships
3οΈβ£ SharpView
SharpView is a .NET alternative to PowerView, offering similar enumeration functionality in a compiled format.
.\SharpView.exe Get-DomainUser -Identity "john.doe"β Retrieves details about a specific user
4οΈβ£ BloodHound & SharpHound
BloodHound is a powerful tool used for visualizing Active Directory attack paths. The SharpHound.exe collector gathers necessary information.
.\SharpHound.exe -c All --zipfilename DataCollectionβ Executes full AD enumeration
Once collected, transfer the results to an attacker-controlled machine and analyze them in BloodHound.
5οΈβ£ Snaffler - File Scavenging Tool
Snaffler automates the discovery of sensitive files within an Active Directory environment.
Snaffler.exe -s -d corp.local -o findings.log -v dataβ Runs a deep scan for valuable files
6οΈβ£ Additional Recon Tools & Methods
General System Enumeration
Get-NetLocalGroupβ Lists local groups on a machineGet-NetLocalGroupMemberβ Enumerates members of a local groupGet-NetShareβ Identifies accessible shared directoriesGet-NetSessionβ Retrieves active session details on a machine
Service Principal Name (SPN) Enumeration
Get-DomainSPNTicketβ Requests Kerberos tickets for Service Principal Name (SPN) accounts (potential Kerberoasting targets)
By leveraging these techniques, an attacker or pentester can gather valuable information about an Active Directory environment while minimizing detection. π
Last updated