Course contentsShow
← Security
Lesson 2239 of 3,05243. Offensive Security ToolingFree lesson

CrackMapExec for Network Enumeration

Automate credential spraying, SMB enumeration, and post-exploitation tasks across Windows networks using CrackMapExec.

CrackMapExec for Network Enumeration

What You'll Learn

You'll master CrackMapExec (CME), a Swiss Army knife for automating credential spraying, SMB enumeration, and post-exploitation across Windows networks in one streamlined tool.

What Is CrackMapExec?

CrackMapExec is a post-exploitation framework specifically designed for Windows/Active Directory environments. Think of it as a network-wide automation engine that can simultaneously test credentials, enumerate shares, execute commands, and dump secrets across dozens or hundreds of machines—all from a single command line.

Unlike tools that focus on one target at a time, CME excels at horizontal movement: spray credentials across entire subnets, identify where they work, then pivot immediately into enumeration or exploitation on every vulnerable host.

Core Capabilities

Credential Testing at Scale: Feed CME usernames, passwords, or NTLM hashes, and it tests them against entire network ranges via SMB, identifying which accounts work on which machines.

Automated Enumeration: Once authenticated, CME enumerates shares, sessions, logged-in users, local admin group members, and domain information—no manual interaction needed.

Post-Exploitation Tasks: Execute commands remotely, dump SAM/LSA secrets, retrieve domain password policies, or deploy modules for specific attacks like Mimikatz or BloodHound data collection.

Protocol Flexibility: While SMB is primary, CME also supports WinRM, MSSQL, LDAP, and SSH protocols, making it versatile across mixed environments.

Why It Matters

In real-world engagements, you rarely have time to manually test credentials or enumerate every target. CME compresses hours of manual work into seconds, providing immediate visibility into which credentials grant access where—critical for efficient lateral movement and understanding your attack surface.

Key Takeaway:
CrackMapExec automates credential validation and enumeration across entire Windows networks simultaneously, turning tedious manual tasks into rapid, scalable reconnaissance that identifies privilege paths and vulnerable systems in seconds.