예제 #1
0
        public static void Main(string[] args)
        {
            string   target = @"C:\\Deobfuscator.exe";
            Assembly asm    = Assembly.LoadFile(target);

            SendToJit.SendModuleToJit(asm.ManifestModule);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
예제 #2
0
 void SendMainModuleToJitToolStripMenuItemClick(object sender, EventArgs e)
 {
     if (assemblieslist.SelectedIndices.Count > 0)
     {
         string     fullname  = assemblieslist.Items[assemblieslist.SelectedIndices[0]].SubItems[1].Text;
         Assembly[] asemblies = AppDomain.CurrentDomain.GetAssemblies();
         for (int i = 0; i < asemblies.Length; i++)
         {
             if (asemblies[i].FullName == fullname)
             {
                 SendToJit.SendModuleToJit(asemblies[i].ManifestModule);
             }
         }
     }
 }
예제 #3
0
        void SendModuleToJitToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (moduleslist.SelectedIndices.Count > 0)
            {
                string moduleaddress = moduleslist.Items[moduleslist.SelectedIndices[0]].SubItems[0].Text;
                int    modulevalue   = Convert.ToInt32(moduleaddress, 16);

                Module[] mod = asm.GetModules();
                for (int i = 0; i < mod.Length; i++)
                {
                    int address = (int)Marshal.GetHINSTANCE(mod[i]);
                    if (modulevalue == address)
                    {
                        SendToJit.SendModuleToJit(mod[i]);
                    }
                }
            }
        }