.NET Classes
Domain Enumeration
Current domain name:
Domain Forest Trusts
Get Password Policy
Get a Domain Computer
The above one-liner we searched for a computer name starting with “SV-”, that can possibly be a server appellation. Similarly, it is possible to enumerate a specific computer with the exact name.
Get All Domain Computers
Enumerate Single User
Enumerate All Domain Controllers
Enumerate All Users
Enumerate All Users With Specific Properties
Filter by property, this code will just display “samaccountname” as a result for all users.
Enumerate all users with a SPN
A service instance’s service principal name (SPN) is a unique identifier. Kerberos authentication uses SPNs to link a service instance to a service login account. This enables a client application to ask the service to authenticate an account even if it doesn’t know the account name. If we want to display all users with SPN then we can use below code:
Enumerate a Domain Group
Enumerate All Domain Groups
Enumerate domain group members
References:
Last updated