Exemple #1
0
        public Deobfuscator(DeobfuscatorContext context)
        {
            Globals.DeobContext = context;

            Globals.Bugster = new BugReporter("150fa190dbb7a61815b4103fee172550", new NETDeobExceptionFormatter());
            AppDomain.CurrentDomain.UnhandledException += Globals.Bugster.UnhandledExceptionHandler;
            Globals.Bugster.ReportCompleted            += (o, e) =>
            {
                if (e.WasSuccesful)
                {
                    Console.WriteLine(
                        "\nAn unhandled exception have occured and caused NETDeob to terminate!\n\nAn automatic report have been sent to the author.");
                    Console.ReadLine();
                    Environment.Exit(-1);
                }
                else
                {
                    Console.WriteLine("Contact author!");
                    Console.ReadLine();
                    Environment.Exit(-1);
                }
            };

            _options = Globals.DeobContext.Options = Globals.DeobContext.Options ?? new DeobfuscatorOptions();
        }
Exemple #2
0
        private static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                return;
            }

            var ctx       = new DeobfuscatorContext();
            var optionSet = new OptionSet()
            {
                { "st=|strtok=", t =>
                  {
                      if (t != null)
                      {
                          ctx.DynStringCtx = new DeobfuscatorContext.DynamicStringDecryptionContext
                          {
                              AssociatedToken = Int32.Parse(t, NumberStyles.HexNumber),
                              DecryptionType  = DeobfuscatorContext.StringDecryption.Dynamic
                          }
                      }
                      ;
                  } },
                { "v|verbose", v =>
                  {
                      if (v != null)
                      {
                          ctx.Output = DeobfuscatorContext.OutputType.Verbose;
                      }
                  } },