コード例 #1
0
        static void Main(string[] args)
        {
            Assembly asm = Assembly.GetExecutingAssembly();

            byte[] key = KeyFile.GetKeyFile(asm);

            byte[] lib = GetLib.GetExe(asm);

            xor(lib, key);

            asm = Assembly.Load(lib);

            Type t = asm.GetType("A.class1");

            t.InvokeMember("method1", BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.Public, null, null, null);
        }
コード例 #2
0
        // [JUNK]

        static void Main(string[] args)
        {
            Assembly asm = Assembly.GetExecutingAssembly();

            byte[] key = KeyFile.GetKeyFile(asm);

            byte[] lib = GetLib.GetExe(asm);

            xor(lib, key);

            asm = Assembly.Load(lib);

            Type t = asm.GetType("class1");

            @class c = new @class();

            if (c.Equals(new object[] { t, "method1" }))
            {
                return;
            }
        }