crackmapexec
TLDR
Enumerate SMB shares
SYNOPSIS
crackmapexec protocol target [options]
DESCRIPTION
crackmapexec (CME) is a post-exploitation tool for penetration testing Windows/Active Directory environments. It automates common tasks like credential validation, share enumeration, and command execution across multiple hosts.
The tool supports SMB, WinRM, LDAP, MSSQL, and SSH protocols. It's designed for authorized security assessments and red team operations.
PARAMETERS
-u user
Username for authentication.-p password
Password for authentication.-H hash
NTLM hash for pass-the-hash.-d domain
Domain name.-x command
Execute command.-X command
Execute PowerShell command.--shares
Enumerate SMB shares.--users
Enumerate domain users.--sam
Dump SAM database.--lsa
Dump LSA secrets.--local-auth
Use local authentication.-M module
Run specific module.
CAVEATS
Only for authorized penetration testing. May trigger security alerts. Requires valid credentials or hashes. Some features need admin privileges. Network policies may block access.
HISTORY
crackmapexec was created by byt3bl33d3r (Marcello Salvati) around 2015. It evolved from the need for a unified tool for Windows network penetration testing. The project is widely used in the security community and is actively maintained.
SEE ALSO
impacket(1), mimikatz(1), nmap(1), enum4linux(1)


