Overview
NetExec (nxc) is the successor to CrackMapExec (cme). Multi-protocol Swiss army knife for pentesting Windows/Active Directory environments. Supports SMB, LDAP, WinRM, MSSQL, SSH, FTP, and RDP from a single tool with a unified interface.- CrackMapExec is deprecated — use
nxcinstead ofcrackmapexec/cme - Handles password spraying, credential validation, command execution, and post-exploitation across protocols
- Built-in database tracks all discovered credentials and hosts
Installation
pipx (recommended)
apt (Kali)
From source
Authentication Methods
All protocols share the same authentication flags.SMB
Check Access and Signing
Enumerate Shares
Spider Shares
List Users
Enumerate Logged-On Users
Enumerate Disks
RID Brute Force
Pass-the-Hash
SAM Dump
LSA Dump
NTDS Dump (Domain Controller)
Command Execution
Put / Get Files
LDAP
Enumerate Users
Enumerate Groups
Enumerate Computers
Enumerate Domain Trusts
--trusted-for-delegation lists unconstrained-delegation accounts, not trusts (see “Find Delegation” below). NetExec has no dedicated trust flag — collect trusts via BloodHound:
Password Hunting (Description Field)
Kerberoastable Users
AS-REP Roastable Users
Find Delegation
MachineAccountQuota (MAQ)
Password Policy
LAPS Passwords
gMSA Passwords
Enumerate ADCS
WinRM
Check Access
Command Execution
Pass-the-Hash
MSSQL
Authentication
Command Execution (xp_cmdshell)
Enumeration
SSH
Authentication Check
Brute Force
Command Execution
FTP
Authentication Check
Anonymous Check
Brute Force
RDP
Check Access
Check NLA
Screenshot
Password Spraying
Across Protocols
Jitter and Delay
Lockout Awareness
Always check the password policy first:--continue-on-success and wait between attempts based on the lockout observation window.