Practice library / Windows, Active Directory and macOS
Lab · Medium · 75 minutesFree account
Active Directory Basics
AD enumeration with net commands, PowerShell, and LDAP queries.
On this page 11 sections
Before you start
Active Directory holds every user, group, and policy in a Windows network, so one weak account can hand an attacker the whole domain. Real breach reports show the same pattern: the intruder lands on one workstation, maps the domain, and pivots to Domain Admin in days. The exercises here enumerate users, groups, and computers with native commands and BloodHound, then run Kerberoasting and ASREPRoasting against a lab domain.
Lab Objectives
- Understand what Active Directory is and how enterprises use it
- Enumerate users, groups, and computers in an AD domain
- Use BloodHound to visualise attack paths to Domain Admin
- Understand and perform Kerberoasting and ASREPRoasting
Build the target
KaliRange hosts no targets, no virtual machines and no lab files. You run this lab on your own machine, against a domain that you build. The names and 192.168.1.x addresses in the commands are the example addresses of this lab. Replace them with the addresses of your own domain.
Your lab domain must have these parts:
| Host | Role |
|---|---|
DC01 (192.168.1.10) | Domain Controller of corp.local (base DN dc=corp,dc=local), Windows Server 2019 |
| Your Kali machine | The attack box, on the same network |
- A plain domain user
johnwith the passwordPassword123. Use your own password and put it in the commands. - A service account
svc_httpwith the Service Principal Namehttp/webserverand a weak password that is inrockyou.txt(Step 6). - A user that has "Do not require Kerberos preauthentication" set, for Step 7. The example output uses
john. Put your own user names inusers.txt, one per line. - The
administratoraccount with the passwordPassword123, and WinRM enabled onDC01(Steps 8 and 10). The NTLM hash in Step 8 is an example. Use the hash of your ownadministratoraccount. - Optional: other domain-joined computers in
192.168.1.0/24, so that the scan in Step 3 and the computer list in Step 4 show more than the DC.
Build such a domain from free, legal parts. Install an evaluation copy of Windows Server from the Microsoft Evaluation Center (180 days) in a virtual machine on your own computer and promote it to a domain controller. Or start from GOAD ("Game of Active Directory"), a deliberately vulnerable Active Directory lab that Orange Cyberdefense publishes on GitHub. Isolate it from the internet. Its domain names differ from corp.local, so change the names in the commands. Take a snapshot of each virtual machine before Step 1, so that you can go back.
Run every command in this lab only against a domain that you own or have written permission to test.
Step 1: Active Directory Overview
Active Directory (AD) is Microsoft's directory service used by virtually every enterprise. It manages authentication, authorisation, and policies for Windows networks. Compromising AD means owning the entire organisation.
# AD key components:
# Domain Controller (DC) → the server that runs AD
# Domain → e.g. corp.local — the AD namespace
# Forest → collection of one or more domains
# Users/Groups → security principals
# GPOs → Group Policy Objects (push config to machines)
# Kerberos → AD's authentication protocol (tickets not passwords)
# LDAP → protocol to query AD (port 389/636)Step 2: Key Terminology
| Term | What it means |
|---|---|
| DC | Domain Controller — the heart of AD, handles all auth |
| LDAP | Protocol to query AD (port 389 / 636 SSL) |
| Kerberos | Ticket-based auth protocol AD uses (port 88) |
| SPN | Service Principal Name — ties a service to a user account |
| TGT | Ticket Granting Ticket — proves who you are to Kerberos |
| TGS | Ticket Granting Service — access ticket for a specific service |
| Domain Admin | Group with full control over the entire domain |
| krbtgt | Special account that signs all Kerberos tickets |
Sign in to continue
8 more sections are for signed-in members. It is free: sign in with Google.