This nim program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for Windows) and AMSI (Antimalware Scan Interface) protections.
The program modifies the PowerShell profile (Microsoft.PowerShell_profile.ps1
) to apply two patches:
- AMSI Patch: Disables AMSI by modifying the
AmsiScanBuffer
function,{ 0x31, 0xC0, 0xC3 }
. - ETW Patch: Modifies the
EtwEventWrite
function inntdll.dll
to prevent event tracing,{ 0xC3 }
. - Sets File attributes Hidden and System to :
Microsoft.PowerShell_profile.ps1
.
Effect: Once applied, PowerShell sessions initiated afterward will have AMSI and ETW bypassed.
Run the powershell command below as admin to remove it
$file = "$env:userprofile\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
if (Test-Path $file) { Remove-Item $file -Force }
I, the creator, am not responsible for any actions, and or damages, caused by this software. You bear the full responsibility of your actions and acknowledge that this tool was created for educational purposes only. This tool's main purpose is NOT to be used maliciously, or on any system that you do not own, or have the right to use. By using this software, you automatically agree to the above.