Programmatic MSIL injection

前端 未结 7 2057
情书的邮戳
情书的邮戳 2021-02-09 08:01

Let\'s say I have a buggy application like this:

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
          


        
7条回答
  •  伪装坚强ぢ
    2021-02-09 08:30

    Rather than injecting MSIL at runtime, have you considered inserting the source directly into the assembly?

    You can disassemble with ildasm, insert your MSIL, and then reassemble with ilasm, then deploy the product of that.

提交回复
热议问题