Forked from mattifestation/CILStreamObfuscation.ps1
Created
January 22, 2019 18:40
-
-
Save sasqwatch/8cf4a0ba165a2fafd059e75d52084fca to your computer and use it in GitHub Desktop.
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
${π€·} = New-Object Reflection.Emit.DynamicMethod('π©', [UInt32], @([UInt32], [UInt32])) | |
${π€} = ${π€·}.GetILGenerator() | |
@(@(2, 275120805),@(3, 275120805),@(88, -261739867),@(42, 23440101)) | % { | |
${π€}.Emit([Activator]::CreateInstance([System.Reflection.Emit.OpCode], [Reflection.BindingFlags] 'NonPublic, Instance', $null, @(($_[0] -as [System.Reflection.Emit.OpCode].Assembly.GetType('System.Reflection.Emit.OpCodeValues')), $_[1]), $null)) | |
} | |
${π©} = ${π€·}.CreateDelegate([Func``3[UInt32, UInt32, UInt32]]) | |
${π©}.Invoke(2,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment