offensive-netexec
What it does
This skill is a reference for NetExec, a tool used in Active Directory and network security testing. It covers command syntax, protocols such as SMB, LDAP and WinRM, authentication options and credential extraction. It is for security professionals running authorized tests.
When to use it
- ✓When you are running an authorized NetExec scan across SMB, LDAP, WinRM or other protocols.
- ✓When you need the right command syntax and authentication flags for nxc.
- ✓When you want to check password spraying or credential dumping as part of an authorized test.
Skill link
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/active-directory/offensive-netexec/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me the nxc commands to test SMB login and list shares on our authorized test network.”
5 new skills a week. 1 minute to read.
How it works
The skill gives the nxc command pattern, the list of supported protocols, the target formats and the authentication flags. It then gives the commands for each protocol and action.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
NetExec (nxc) — Reference Skill
Global Syntax & Options
nxc <protocol> <target(s)> [auth options] [action options] [global options]
Available Protocols
smb ssh ldap ftp wmi winrm rdp vnc mssql nfs
Target Formats
nxc smb 192.168.1.0/24 # CIDR
nxc smb 192.168.1.1 192.168.1.2 # Multiple IPs
nxc smb 192.168.1.1-28 # IP range
nxc smb dc01.corp.local # Hostname
nxc smb ~/targets.txt # File
Global Flags
| Flag | Description |
|---|---|
-t THREADS |
Concurrent threads (default: 100) |
--timeout TIMEOUT |
Per-thread timeout in seconds |
--jitter INTERVAL |
Random delay between connections (e.g. 3, 2-5, 4-4) |
--no-progress |
Suppress progress bar |
--verbose |
Verbose output |
--debug |
Debug-level output |
Authentication
Core Auth Flags
-u USERNAME # Single username
-u user1 user2 # Multiple usernames
-u ~/users.txt # Username file
-p PASSWORD # Plaintext password
-p 'P@ss!' # Always quote special chars
-p='-P@ss' # Use = for passwords starting with -
-H 'NTHASH' # NT hash only
-H 'LM:NT' # Full NTLM hash
-H 'aad3b435b51404eeaad3b435b51404ee:NTHASH'
-id <cred_id> # Use credential from nxcdb
--local-auth # Authenticate as local user (not domain)
Domain Auth (SMB example)
nxc smb 192.168.1.0/24 -u Administrator -p 'Password123'
nxc smb 192.168.1.0/24 -u Administrator -H 'aad3b435b51404eeaad3b435b51404ee:NTHASH'
Local Auth
nxc smb 192.168.1.0/24 -u localadmin -p 'Password123' --local-auth
Kerberos Auth
# Auto-handle TGT using password
nxc smb dc01.corp.local -u user -p pass -k
# Use existing ccache ticket
export KRB5CCNAME=/path/to/ticket.ccache
nxc smb dc01.corp.local --use-kcache
# Specify KDC explicitly
nxc ldap dc01.corp.local -u user -p pass -k --kdcHost dc01.corp.local
Multi-Domain Environments
# users.txt format:
# DOMAIN1\user1
# DOMAIN2\user2
nxc smb <target> -u users.txt -p 'Password123'
Output Color Codes
- RED — Authentication failed
- GREEN — Authentication succeeded
- MAGENTA — Password valid but account is not admin
(Pwn3d!)— Admin access / code execution available
Pwn3d! Meaning by Protocol
| Protocol | Pwn3d! Meaning |
|---|---|
| SMB | Local/domain admin access |
| WMI | Local admin |
| WinRM | Code execution |
| RDP | Code execution |
| VNC | Code execution |
| LDAP | Path to Domain Admin |
| SSH | Root access |
| FTP | No check |
Password Spraying & Brute Force
# Spray one password across many users
nxc smb <target> -u ~/users.txt -p 'Summer2024!' --no-bruteforce --continue-on-success
# Brute force (user × pass combinations)
nxc smb <target> -u ~/users.txt -p ~/passwords.txt
# Hash spraying
nxc smb <target> -u ~/users.txt -H ~/hashes.txt --no-bruteforce
# Throttle to avoid lockouts
nxc smb <target> -u ~/users.txt -p 'Pass123' --jitter 3
nxc smb <target> -u ~/users.txt -p 'Pass123' --jitter 2-5
# IMPORTANT: --no-bruteforce pairs user[0]:pass[0], user[1]:pass[1], etc.
# Without it: every user × every password (full bruteforce)
# Keep going after first valid credential found
nxc smb <target> -u ~/users.txt -p 'Password' --continue-on-success
⚠️ OpSec: Jitter works per-host. Spraying against multiple hosts multiplies authentication attempts. Monitor domain lockout policy before spraying (use
--pass-polfirst).
SMB Protocol
Network Discovery
# Map live hosts — get OS, hostname, domain, signing, SMBv1
nxc smb 192.168.1.0/24
# Expected output:
# SMB 192.168.1.101 445 DC2016A [*] Windows Server 2016 x64 (name:DC2016A) (domain:CORP) (signing:True) (SMBv1:False)
Enumeration
# Shares and access
nxc smb <ip> -u user -p pass --shares
# Null session share enum
nxc smb <ip> -u '' -p '' --shares
# Guest logon check
nxc smb <ip> -u 'a' -p ''
nxc smb <ip> -u 'a' -p '' --shares
# Domain users
nxc smb <ip> -u user -p pass --users
nxc smb <ip> -u user -p pass --users-export output.txt
# Enumerate users by bruteforcing RIDs (no domain creds needed)
nxc smb <ip> -u '' -p '' --rid-brute
nxc smb <ip> -u '' -p '' --rid-brute 10000 # Set max RID
# Password policy (check before spraying!)
nxc smb <ip> -u user -p pass --pass-pol
# Logged-on users (requires admin)
nxc smb 192.168
FAQ
Which protocols does NetExec support?
It supports SMB, SSH, LDAP, FTP, WMI, WinRM, RDP, VNC, MSSQL and NFS.
How do I give the target list?
You can use a CIDR range, an IP range, a hostname, several IPs or a file of targets.
Does it support hash-based login?
Yes. The skill covers NT hash and full NTLM hash authentication.
Details
Original description by the author
Use this skill whenever the user asks about NetExec (nxc) — a network exploitation and post-exploitation tool for Active Directory environments. Triggers include: any mention of 'nxc', 'netexec', 'crackmapexec' successor questions, AD enumeration, SMB/LDAP/WinRM/MSSQL/SSH/RDP/VNC/WMI/FTP/NFS protocol attacks, password spraying, credential dumping (SAM, NTDS, LSASS, DPAPI), Kerberoasting, ASREPRoasting, lateral movement, BloodHound collection, module usage, or any pentest workflow involving Windows domain environments. This skill covers ALL protocols, ALL modules, and ALL core features of NetEx
repo: SnailSploit/Claude-Red
Popularity
- GitHub stars
- 10k
- Ranking position
- #11944
- License
- MIT
- Updated
- 10/12/2026
Comments
- …
More skills from this repository
offensive-active-directory
10kHelps your agent plan an authorized Active Directory security test, from mapping the network to finding attack paths to Domain Admin.
offensive-api-abuse
10kHelps your agent plan authorized API security tests that look for business logic abuse, GraphQL risks and race conditions.
offensive-api-security
10kHelps your agent run authorized security tests on REST, gRPC and WebSocket APIs, based on the OWASP API Top 10.
offensive-jwt
10kHelps your agent test JWT login tokens for authorized security flaws, such as weak signing and algorithm confusion.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.