πŸ”΄Domain Enumeration

Enumeration

domain , domain controller , domain policy , users , computers , groups , group members

Domain Enumeration

get current domain

get-netdomain

get all domain in current forest

get-forestdomain -verbose

User Enumeration

all users names

get-domainuser | select -expandproperty samaccountname

single user all properties

get-domainuser -identity unmae -properties *

specific properties

get-domainuser | select name,logoncount,memberof,description,useraccountcontrol

single user specific properties

get-domainuser -identity uname | select name,logoncount,memberof,description,useraccountcontrol

Computer Enumeration

Group Enumeration

list local groups as well

Note:- this needs admin privlidges to run the command

Group-Member Enumeration

Note:- this needs admin privlidges to run the command list local group members as well

Note:- Enterprise admins are only present in root domain of forest , so we have to pecificy the domain to make this command work

Objects (OUs) & Policies (GPOs) Enumeration

check policies applied on specific OU

check all computers in specific OU

check policy for specific computer

check specific policy (identity

check local group & computer as well

Logged on users

Note:- need local admin rights list logged on users

Shares

find shares on host in current domain

find sensitives files

get-file server

ACL enumeration

ACL is list of ACEs (access control entries) 2 types :- DACL & SACL DACL - define the access permission for user and group to access any file & folder (object) SACL - make logs of sucess or failuer when user try to access any object

prefix specified - user distinguishedname

path specified

search intresting ACLs

ACL associated with specified path

Trust Enumeration

method of connecting two distinct Active Directory domains (or forests) to allow users in one domain to authenticate against resources in the other it can be automatic = (parent-child,same forest) or established = (external) 2 types of trust uni-directional = user in trusted domain can access the resources in trusting domain but reverse not possible bi-directional = user in both domains can access the resources of each other domain

Forest Mapping

check global catalog

External Trust

external trust with current domain (moneycorp.local)

NOTE:- check trustattributes #whether it is WITHIN_FOREST or FILTER_SIDS

User Hunting

Local/Domain Admin have Access or Session

Note:- this commands run with only local admin access

find all the machines where our user has local admin access

check local admin access on all machines

tool to enumerate local-admin-access

Note:- this commands run with only local admin access , this means if the command run we do have local-admin-access and else if it doesent give any result it means we dont have local-admin-access

do 'get-netcomputer' and save it in a file computers.txt and then

check local admin access on all machines of the domain a

find all the computers where domian admin has session

this command checks session & loggegon only on high traffic server like (DC , file server , distributed file server)

to confirm admin access

Last updated