Пример #1
0
        protected override void ScanForObfuscator()
        {
            mainType = new MainType(module);
            mainType.Find();

            staticMethodsDecrypter = new StaticMethodsDecrypter(module, mainType);
            if (mainType.Detected)
            {
                staticMethodsDecrypter.Find();
            }

            if (mainType.Detected && !staticMethodsDecrypter.Detected)
            {
                dynamicMethodsRestorer = new DynamicMethodsRestorer(module, mainType);
            }

            if (mainType.Detected)
            {
                if (staticMethodsDecrypter.Detected)
                {
                    UpdateObfuscatorNameWith(staticMethodsDecrypter.Version);
                }
                else
                {
                    UpdateObfuscatorNameWith(mainType.GetRuntimeVersionString());
                }
            }
        }
Пример #2
0
		protected override void ScanForObfuscator() {
			mainType = new MainType(module);
			mainType.Find();

			staticMethodsDecrypter = new StaticMethodsDecrypter(module, mainType);
			if (mainType.Detected)
				staticMethodsDecrypter.Find();

			if (mainType.Detected && !staticMethodsDecrypter.Detected)
				dynamicMethodsRestorer = new DynamicMethodsRestorer(module, mainType);

			if (mainType.Detected) {
				if (staticMethodsDecrypter.Detected)
					UpdateObfuscatorNameWith(staticMethodsDecrypter.Version);
				else
					UpdateObfuscatorNameWith(mainType.GetRuntimeVersionString());
			}
		}