Example #1
0
        private static void Start()
        {
            MainJitHook hook = new MainJitHook(typeof(InjectionTest).Assembly, IntPtr.Size == 8);

            hook.OnCompileMethod += CompileMethod;
            hook.Hook();
        }
Example #2
0
        public static void Main(string[] args)
        {
            Assembly asm = Assembly.LoadFrom(@"Amelia_dotnet4_x86_mod.exe");
            MainJitHook hook = new MainJitHook(asm, IntPtr.Size == 8);
           
            hook.OnCompileMethod += ChangeExample;

            hook.Hook();

            asm.EntryPoint.Invoke(null, new object[] {});

            hook.Unhook();

            Console.WriteLine("DONE");
            Console.ReadKey();
        }