Exemple #1
0
		public ProxyCallFixer(ModuleDefMD module, MainType mainType, ProxyCallFixer oldOne)
			: base(module, oldOne) {
			this.mainType = mainType;
			info.proxyType = Lookup(oldOne.info.proxyType, "Could not find proxyType");
			info.initMethod = Lookup(oldOne.info.initMethod, "Could not find initMethod");
			info.dataField = Lookup(oldOne.info.dataField, "Could not find dataField");
			info.ilgeneratorType = Lookup(oldOne.info.ilgeneratorType, "Could not find ilgeneratorType");
			info.fieldInfoType = Lookup(oldOne.info.fieldInfoType, "Could not find fieldInfoType");
			info.methodInfoType = Lookup(oldOne.info.methodInfoType, "Could not find methodInfoType");
		}
Exemple #2
0
 public ProxyCallFixer(ModuleDefMD module, MainType mainType, ProxyCallFixer oldOne)
     : base(module, oldOne)
 {
     this.mainType        = mainType;
     info.proxyType       = Lookup(oldOne.info.proxyType, "Could not find proxyType");
     info.initMethod      = Lookup(oldOne.info.initMethod, "Could not find initMethod");
     info.dataField       = Lookup(oldOne.info.dataField, "Could not find dataField");
     info.ilgeneratorType = Lookup(oldOne.info.ilgeneratorType, "Could not find ilgeneratorType");
     info.fieldInfoType   = Lookup(oldOne.info.fieldInfoType, "Could not find fieldInfoType");
     info.methodInfoType  = Lookup(oldOne.info.methodInfoType, "Could not find methodInfoType");
 }
Exemple #3
0
        protected override void scanForObfuscator()
        {
            findKillType();
            mainType = new MainType(module);
            mainType.find();
            proxyCallFixer = new ProxyCallFixer(module, mainType);
            proxyCallFixer.findDelegateCreator();
            methodsDecrypter = new MethodsDecrypter(mainType);
            methodsDecrypter.find();
            stringDecrypter = new StringDecrypter(module, mainType);
            stringDecrypter.find();
            var version = detectVersion();

            if (!string.IsNullOrEmpty(version))
            {
                obfuscatorName = obfuscatorName + " " + version;
            }
        }
Exemple #4
0
		protected override void ScanForObfuscator() {
			FindKillType();
			mainType = new MainType(module);
			mainType.Find();
			proxyCallFixer = new ProxyCallFixer(module, mainType);
			proxyCallFixer.FindDelegateCreator();
			methodsDecrypter = new MethodsDecrypter(mainType);
			methodsDecrypter.Find();
			stringDecrypter = new StringDecrypter(module, mainType);
			stringDecrypter.Find();
			var version = DetectVersion();
			if (!string.IsNullOrEmpty(version))
				obfuscatorName = obfuscatorName + " " + version;
		}