Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Impacket — smbexec
How It Works
- Creates a service on target via SMB
- Service executes command, output redirected to file
- Reads output via SMB
- Deletes service
cmd.exe /Q /c.
CrackMapExec
Comparison
| Feature | psexec | smbexec | wmiexec |
|---|---|---|---|
| Privilege | SYSTEM | SYSTEM | User |
| Binary upload | Yes | No | No |
| Protocol | SMB | SMB | WMI |
| Detection | High | Medium | Lower |
Quick Reference
| Task | Command |
|---|---|
| Shell | impacket-smbexec DOMAIN/user:pass@TARGET |
| PtH | impacket-smbexec DOMAIN/user@TARGET -hashes :HASH |
| CME | crackmapexec smb TARGET --exec-method smbexec -x "cmd" |