Esempio n. 1
0
 public ObfuscationContext(ObfuscationContext context)
 {
     _resolver = context._resolver;
     _readerParameters = context._readerParameters;
     _assemblies = context._assemblies;
     _satelites = context._satelites;
     Symbols = context.Symbols;
     Filter = context.Filter;
     OutputDirectory = context.OutputDirectory;
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var options = new Options();
            ICommandLineParser parser = new CommandLineParser();
            if (parser.ParseArguments(args, options))
            {
                ObfuscationContext context = new ObfuscationContext();
                context.AddSearchDirectory(options.InputDir);
                context.OutputDirectory = options.OutputDir;

                foreach (var assembly in options.AssemblyNames)
                {
                    context.AddAssembly(assembly);
                }

                Pipeline p = GetPipeline(options);

                p.Process(context);
                System.Console.ReadKey();
            }
        }
Esempio n. 3
0
 public RenamingContext(ObfuscationContext obfuscationContext)
     : base(obfuscationContext)
 {
     DefinitionsRenameMap = new Dictionary<AssemblyNameDefinition, Dictionary<IMemberDefinition, string>>();
 }
Esempio n. 4
0
 public void Process(ObfuscationContext context)
 {
     while (_steps.Count > 0) {
         IStep step = (IStep) _steps [0];
         step.Process (context);
         _steps.Remove (step);
     }
 }
Esempio n. 5
0
        public override void Process(ObfuscationContext context)
        {
            _context = context as RenamingContext;

            base.Process(context);
        }