コード例 #1
0
ファイル: ObfuscatedFile.cs プロジェクト: huliang/de4dot
        public ObfuscatedFile(Options options, IAssemblyClientFactory assemblyClientFactory)
        {
            this.assemblyClientFactory = assemblyClientFactory;
            this.options = options;
            userStringDecrypterMethods = options.StringDecrypterMethods.Count > 0;
            options.Filename = Utils.getFullPath(options.Filename);
            assemblyModule = new AssemblyModule(options.Filename);

            if (options.NewFilename == null)
                options.NewFilename = getDefaultNewFilename();

            if (string.Equals(options.Filename, options.NewFilename, StringComparison.OrdinalIgnoreCase))
                throw new UserException(string.Format("filename is same as new filename! ({0})", options.Filename));
        }
コード例 #2
0
ファイル: ObfuscatedFile.cs プロジェクト: zrzhd/de4dot
        public ObfuscatedFile(Options options, ModuleContext moduleContext, IAssemblyClientFactory assemblyClientFactory)
        {
            this.assemblyClientFactory = assemblyClientFactory;
            this.options = options;
            userStringDecrypterMethods = options.StringDecrypterMethods.Count > 0;
            options.Filename           = Utils.GetFullPath(options.Filename);
            assemblyModule             = new AssemblyModule(options.Filename, moduleContext);

            if (options.NewFilename == null)
            {
                options.NewFilename = GetDefaultNewFilename();
            }

            if (string.Equals(options.Filename, options.NewFilename, StringComparison.OrdinalIgnoreCase))
            {
                throw new UserException(string.Format("filename is same as new filename! ({0})", options.Filename));
            }
        }