12.Credentialed Enumeration - from Windows
1. Active Directory PowerShell Module
Function: Administers Active Directory from the command line.
Key Cmdlets:
Get-Module
: Lists available modules.Import-Module ActiveDirectory
: Loads the module.Get-ADDomain
: Retrieves domain information.Get-ADUser
: Retrieves user information.Get-ADTrust
: Retrieves domain trust relationships.Get-ADGroup
: Retrieves group information.Get-ADGroupMember
: Retrieves group membership.
Commands:
Significance: Built-in and stealthy enumeration.
Function: Gains situational awareness within an AD environment.
Key Functions (PowerView):
Get-DomainUser
: Retrieves user information.Get-DomainGroupMember
: Retrieves group membership.Get-DomainTrustMapping
: Retrieves domain trust mappings.Test-AdminAccess
: Tests for local admin access.Get-DomainUser -SPN -Properties samaccountname,ServicePrincipalName
: Finds users with SPN.Get-DomainGPO
: Enumerates Group Policy Objects.Get-DomainUser -TrustedToAuth
: Finds users with unconstrained delegation.
Key Functions (SharpView):
Get-DomainUser
: Retrieves user information.
PowerView Commands:
SharpView Commands:
Significance: Comprehensive enumeration and relationship mapping.
3. Snaffler
Function: Acquires credentials and sensitive data from file shares.
Commands:
Significance: Efficient sensitive data discovery.
Key Takeaways:
Windows-based enumeration provides access to powerful tools.
The ActiveDirectory PowerShell module offers stealthy built-in capabilities.
PowerView/SharpView excels at relationship mapping and situational awareness.
Snaffler quickly finds sensitive data within file shares.
Always use the
-help
flag to learn available options.
Additional Considerations:
PowerShell's Get-Help:
Similar to Linux
man
pages, PowerShell has built-in help.
PowerShell Module Discovery:
This helps in discovering available cmdlets.
PowerView Loading:
Required since PowerView is not a built-in module and may need an execution policy bypass.
Snaffler Output Handling:
Filters results for sensitive keywords.
Checking Active Directory Replication Metadata:
Useful for investigating AD replication.
Last updated