Esempio n. 1
0
        public static int main(StartUpArch startUpArch, string[] args)
        {
            Utils.startUpArch = startUpArch;

            try {
                if (Console.OutputEncoding.IsSingleByte)
                    Console.OutputEncoding = new UTF8Encoding(false);

                Log.n("");
                Log.n("de4dot v{0} (BETA) Copyright (C) 2011 [email protected]", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
                Log.n("Latest version and source code: https://github.com/0xd4d/de4dot");
                Log.n("");

                var options = new FilesDeobfuscator.Options();
                parseCommandLine(args, options);
                new FilesDeobfuscator(options).doIt();
            }
            catch (UserException ex) {
                Log.e("ERROR: {0}", ex.Message);
            }
            catch (Exception ex) {
                Utils.printStackTrace(ex);
                Log.e("\nTry the latest version before reporting this problem!");
                return 1;
            }

            return 0;
        }
Esempio n. 2
0
        public CommandLineParser(IList<IDeobfuscatorInfo> deobfuscatorInfos, FilesDeobfuscator.Options filesOptions)
        {
            this.deobfuscatorInfos = deobfuscatorInfos;
            this.filesOptions = filesOptions;
            this.filesOptions.DeobfuscatorInfos = deobfuscatorInfos;
            this.filesOptions.AssemblyClientFactory = new NewAppDomainAssemblyClientFactory();

            addAllOptions();
        }