githubEdit

acl-enum

PowerView - tool

Get targeted user ACL list (access rights list)

Google the objectAceType

Import-module .\PowerView.ps1
$sid = Convert-NameToSid <username>
Get-DomainObjectACL -Identity * | ? {$_.SecurityIdentifier -eq $sid}

Reverse search & matching to GUID value

$guid = '00299570-246d-11d0-a768-00aa006e0529'
Get-ADObject -SearchBase "CN=Extended-Rights,$((Get-ADRootDSE).ConfigurationNamingContext)" -Filter {ObjectClass -like 'ControlAccessRight'} -Properties * |Select Name,DisplayName,DistinguishedName,rightsGuid| ?{$_.rightsGuid -eq $guid} | fl

Get targeted user ACL list (human-readable format)

Get-DomainObjectACL -ResolveGUIDs -Identity * | ? {$_.SecurityIdentifier -eq $sid}

Show all ACLs

Find-InterestingDomainAcl

Using Built-in tools

Create a list of domain users

Get-ADUser -Filter * | Select-Object -ExpandProperty SamAccountName > ad_users.txt

Get ACL list

Further rights enumerations

Get a user ACL list (check group member rights)

Check nested group information (investigate a group)

Investigating a group (look for interesting access)

Check access rights of a user (objectAceType)



Powerview - tool



AD powershell module (Extra)

List out available modules

Load ActiveDirectory module

Get domain info

User list with ServicePrincipleName property populated

This gives us a listening of accounts that may be susceptible to a kerberoasting attack.

ACLs users & groups

ACLs - filter out specific permission

Scan domain for all interesting abusable permissions

Check for domain trust relationships

Get group info

Get specific group info

Get group member info

Check which domain user is member of local administrator group

Get full information of user (AD)


User search

Computer search

View all objects in OU

Users with specific attribute set (passwd_notreqd)

#passwordnotreq #passwdnotreq

Searching for Domain Controller

-attr can be used for filter purpose

Search disabled accounts in AD

UAC values - 1.2.840.113556.1.4.803, useful when searching for information in AD

Last updated