Update decrypter detection code

This commit is contained in:
de4dot 2011-11-24 10:08:29 +01:00
parent 716870b4bd
commit 17660c225e

View File

@ -82,11 +82,13 @@ namespace de4dot.deobfuscators.dotNET_Reactor {
"System.IO.MemoryStream",
"System.Security.Cryptography.CryptoStream",
"System.Security.Cryptography.ICryptoTransform",
"System.Security.Cryptography.RijndaelManaged",
};
requiredTypes.AddRange(additionalTypes);
if (!localTypes.all(requiredTypes))
return false;
if (!localTypes.exists("System.Security.Cryptography.RijndaelManaged") &&
!localTypes.exists("System.Security.Cryptography.AesManaged"))
return false;
if (checkResource && findMethodsDecrypterResource(method) == null)
return false;