the_open_door
coffee
ESEN
← Tools

NetExec

Swiss-army knife for SMB/WinRM/LDAP: validates creds and enumerates (formerly CrackMapExec).

The Swiss-army knife of Windows/AD networks (CrackMapExec's successor). Over SMB, WinRM, LDAP, MSSQL, RDP, SSH and more: it bulk-validates credentials, enumerates shares and users, sprays passwords, does Pass-the-Hash and runs modules. A (Pwn3d!) means admin access.

Family Active Directory enumeration

Flags smb/ldap/winrm -u -p -H --users --shares

Concepts Password Spraying, Pass-the-Hash, Credential reuse, SAM & LSA Secrets Dump, NTDS.dit Dump

Cheatsheet SMB · 139 / 445

Installation

pipx install git+https://github.com/Pennyw0rth/NetExec
# se invoca como 'nxc' o 'netexec'

Useful commands8 commands

When it fails

  • Error enumerating shares: STATUS_ACCESS_DENIEDIt comes right after a [+], which is the session being accepted. Two different permissions: the null session gets in and listing shares is denied. Do not confuse it with STATUS_LOGON_FAILURE, which really is a bad credential: that distinction is what decides whether to keep trying passwords or change route.seen in Forest

Appears in

Some machines where its use is documented; not an exhaustive list.