Inline obfuscation - #23
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a command obfuscation feature for the interactive PowerShell shell, allowing users to toggle obfuscation on/off via a new obf/obs command. The shell prompt visually indicates when obfuscation is active, and the infrastructure routes commands through an obfuscation function (currently a stub returning the original command).
- Added
obf/obscommand to toggle obfuscation state - Updated shell prompt to display obfuscation indicator when enabled
- Integrated
ps_obfuscatefunction into command execution flow
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Pretty cool idea. Any ideas how to implement the actual obfuscation? |
I have it already implemented which already works with most public working AMSi bypass scripts. Not be pushing it as no one needs the feature. People are happy using og evil-winrm. There's no need of this tool maybe. |
Just wanted to assure you that there's a huge community out there that hates evil-winrm and loves evil-winrm-py. So "there's no need of this tool maybe" is not true :) |
|
@gumbyDE I 100% agree with you. I tell everyone to use this tool. Not because the other one is bad but rather because dealing with Ruby is suuuchh a pain sometimes |
This pull request adds support for command obfuscation to the interactive PowerShell shell in
evil_winrm_py.py. Users can now toggle obfuscation on and off using the newobf/obscommand, and the shell prompt visually indicates when obfuscation is enabled. The groundwork for obfuscating PowerShell commands is included, though the actual obfuscation logic is yet to be implemented.Command obfuscation feature:
obf/obscommand to the shell menu, allowing users to toggle command obfuscation on or off.OBFUSCATION_ENABLEDflag to track obfuscation state.ps_obfuscatefunction, which will eventually obfuscate PowerShell commands before execution.ps_obfuscateif obfuscation is enabled, and implemented the toggle logic in the shell loop.