Skip to content

Instantly share code, notes, and snippets.

@CamxxCore
Created June 29, 2017 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CamxxCore/25739bb281ebf0d7021e87f7d49a8f89 to your computer and use it in GitHub Desktop.
Save CamxxCore/25739bb281ebf0d7021e87f7d49a8f89 to your computer and use it in GitHub Desktop.
pattern = new Pattern("\x45\x33\xC9\x44\x8B\xC5\x48\x8B\xD3\x48\x8B\xCE", "xxxxxxxxxxxx");
result = pattern.Get(-5);
if (result == IntPtr.Zero) return;
byte[] byteArray = { 0x90, 0x90, 0x90, 0x90, 0x90 };
Marshal.Copy(byteArray, 0, result, byteArray.Length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment