Enumeration
Enumerating Active Directory
Current Domain info
[System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain()Enumeration Tools
Domain
Get current domain
Get-NetDomain
Get-ADDomainGet Object of another domain(if trusts)
Get-NetDomain –Domain moneycorp.local
Get-ADDomain -Identity moneycorp.local
Get domain SID for the current domain
Policy
Get domain policy for the current domain
Get domain policy for another domain
Get domain controllers for the current domain and it's IP
Get domain controllers for another domain
Users
Get a list of users in the current domain
Get List of all properties for users in the current domain
Search for a particular string in a user's attributes:
Computers
Get a list of computers in the current domain
Groups
Get all the groups in the current domain
Get all groups containing the word "admin" in group name
Get all the members of the Domain Admins group
Get the group membership for a user:
List all the local groups on a machine (needs administrator privs on nondc machines)
Get members of all the local groups on a machine (needs administrator privs on non-dc machines)
Get actively logged users on a computer (needs local admin rights on
the target)
Get locally logged users on a computer (needs remote registry on the target - started by-default on server OS)
Get the last logged user on a computer (needs administrative rights and
remote registry on the target)
Shares
Find shares on hosts in current domain.
Find sensitive files on computers in the domain
Get all fileservers of the domain
GPO
Get list of GPO in current domain
Get GPO(s) which use Restricted Groups or groups.xml for interesting
users
Get users which are in a local group of a machine using GPO
Get machines where the given user is member of a specific group
Get OUs in a domain
Get GPO applied on an OU. Read GPOname from gplink attribute from
Get-NetOU
Get the ACLs associated with the specified object
Get the ACLs associated with the specified prefix to be used for search
We can also enumerate ACLs using ActiveDirectory module but without
resolving GUIDs
Get the ACLs associated with the specified LDAP path to be used for search
Search for interesting ACEs
Get the ACLs associated with the specified path
Trusts
Get a list of all domain trusts for the current domain
Get details about the current forest
Get all domains in the current forest
Get all global catalogs for the current forest
Map trusts of a forest
Enumerating computers from the trustee domain
Sessions
Find all machines on the current domain where the current user has
local admin access
Find local admins on all machines of the domain (needs administrator
privs on non-dc machines).
Find computers where a domain admin (or specified user/group) has sessions
Find computers where a domain admin is logged-in.
Get actively logged users on a computer (needs local admin rights on
the target)
Get locally logged users on a computer (needs remote registry on the target - started by-default on server OS)
Get the last logged user on a computer (needs administrative rights and
remote registry on the target)
Defense
find for sensitive texts like pass, password,etc in all files
Feature Abuse
Without logging in we can list users
Bloodhound
Last updated