CrackMapExec and NetExec Cheat Sheet
CrackMapExec and NetExec Cheat Sheet
seriotonctf.github.io/2024/03/07/CrackMapExec-and-NetExec-Cheat-Sheet/
A cheat sheet for CrackMapExec and NetExec, featuring useful commands and modules for different
services to use during Pentesting
1/10
NetExec: https://github.com/Pennyw0rth/NetExec
Installation: https://www.netexec.wiki/getting-started/installation
The same commands for crackmapexec would also work for NetExec
Enumeration
Initial Enumeration
bash
crackmapexec smb
target
Null Authentication
bash
Guest Authentication
bash
List Shares
bash
2/10
bash
List Usernames
bash
bash
bash
Local Authentication
bash
Using Kerberos
bash
3/10
bash
Spraying
Password Spray
bash
bash
bash
SMB
All In One
bash
Spider_plus Module
4/10
bash
bash
LDAP
All In One
bash
WMI
5/10
bash
MSSQL
Authentication
bash
bash
Get a file
bash
Secrets Dump
6/10
gMSA
bash
bash
Dump NTDS.dit
7/10
bash
Asreproast
bash
Bloodhound
bash
Useful Modules
Webdav
Checks whether the WebClient service is running on the target
bash
Veeam
Extracts credentials from local Veeam SQL Database
bash
8/10
slinky
Creates windows shortcuts with the icon attribute containing a UNC path to the specified SMB server in
all shares with write permissions
bash
ntdsutil
Dump NTDS with ntdsutil
bash
ldap-checker
Checks whether LDAP signing and binding are required and/or enforced
bash
bash
bash
9/10
bash
ADCS Enumeration
bash
Author: serioton
Link: https://seriotonctf.github.io/2024/03/07/CrackMapExec-and-NetExec-Cheat-Sheet/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
cheatsheet
10/10