Skip to content

Instantly share code, notes, and snippets.

Created May 3, 2021 23:09
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NautilusProject
public class WriteGadget
public static void WriteMemory(IntPtr addr, IntPtr value)
var mngdRefCustomeMarshaller = typeof(System.String).Assembly.GetType("System.StubHelpers.MngdRefCustomMarshaler");
var CreateMarshaler = mngdRefCustomeMarshaller.GetMethod("CreateMarshaler", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);
CreateMarshaler.Invoke(null, new object[] { addr, value });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment