Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Windows, Active Directory and macOS

Lab · Medium · 75 minutesFree account

Active Directory Basics

AD enumeration with net commands, PowerShell, and LDAP queries.

  • active-directory
  • enumeration
  • ldap
  • bloodhound
  • kerberoasting
  • pass-the-hash
On this page 11 sections
  1. ·Build the target
  2. 1Active Directory Overview
  3. 2Key Terminology
  4. Locked: Initial Recon
  5. Locked: LDAP Enumeration
  6. Locked: BloodHound
  7. Locked: Kerberoasting
  8. Locked: ASREPRoasting
  9. Locked: Pass-the-Hash
  10. Locked: Common AD Attack Paths
  11. Locked: Tools Summary

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:

HostRole
DC01 (192.168.1.10)Domain Controller of corp.local (base DN dc=corp,dc=local), Windows Server 2019
Your Kali machineThe attack box, on the same network
  • A plain domain user john with the password Password123. Use your own password and put it in the commands.
  • A service account svc_http with the Service Principal Name http/webserver and a weak password that is in rockyou.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 in users.txt, one per line.
  • The administrator account with the password Password123, and WinRM enabled on DC01 (Steps 8 and 10). The NTLM hash in Step 8 is an example. Use the hash of your own administrator account.
  • 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

TermWhat it means
DCDomain Controller — the heart of AD, handles all auth
LDAPProtocol to query AD (port 389 / 636 SSL)
KerberosTicket-based auth protocol AD uses (port 88)
SPNService Principal Name — ties a service to a user account
TGTTicket Granting Ticket — proves who you are to Kerberos
TGSTicket Granting Service — access ticket for a specific service
Domain AdminGroup with full control over the entire domain
krbtgtSpecial 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.

Related