static void Begin()
        {
            //NOTE: For some odd reason, the proxy-delegate fixer fails on some methods like the constructor/entrypoint i yet have not fixed this but will try fix soon. But it works for every other method
            ProxyDelegatesModule.Execute(); //Execute the process of cleaning delegates
            ControlFlowModule.Execute();    //Execute the process of cleaning controlflow
            StringDecryption.Execute();     //Execute the process of decrypting strings
            AntiTamperModule.Execute();     //Execute the process of removing anti-tamper attributes

            ModuleWriterOptions options = new ModuleWriterOptions(Globals.ASM.ManifestModule);

            options.MetadataOptions.Flags |= MetadataFlags.PreserveAll;                                               //Preserve/keep all the tokens
            options.MetadataLogger         = DummyLogger.NoThrowInstance;                                             //Prevents any errors coming.
            options.MetadataOptions.PreserveHeapOrder(Globals.ASM.ManifestModule, true);                              //Will help if file is protected with KoiVM + Agile.NET which keeps the #Koi Stream.

            if (Globals.IsDLL)                                                                                        //Checks to see if file is dll
            {
                Globals.ASM.Write(Path.GetFileNameWithoutExtension(Globals.ASM_PATH) + "-Deobfuscated.dll", options); //save file as dll
            }
            else
            {
                Globals.ASM.Write(Path.GetFileNameWithoutExtension(Globals.ASM_PATH) + "-Deobfuscated.exe", options);//save file as exe
            }
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("[+] Finished.");
        }
Beispiel #2
0
 // END CUT HERE
 // BEGIN CUT HERE
 public static void Main()
 {
     try {
     StringDecryption ___test = new StringDecryption();
     ___test.run_test(-1);
     } catch(Exception e) {
     //Console.WriteLine(e.StackTrace);
     Console.WriteLine(e.ToString());
     }
 }
Beispiel #3
0
// END CUT HERE
// BEGIN CUT HERE
    public static void Main()
    {
        try {
            StringDecryption ___test = new StringDecryption();
            ___test.run_test(-1);
        } catch (Exception e) {
//Console.WriteLine(e.StackTrace);
            Console.WriteLine(e.ToString());
        }
    }
        protected void Button2_Click(object sender, EventArgs e)
        {
            string input = TextBox1.Text;

            string encrypted = StringEncryption.EnryptString(input);

            //Calling the decrypt function of the StringEncryption class from the LarissaDLL_ClassLibrary created.
            string decrypted = StringDecryption.DecryptString(encrypted);

            Label4.Text = decrypted;
        }