Only string decrypter method is worth 100 points

This commit is contained in:
de4dot 2012-02-12 16:56:11 +01:00
parent 3e3be639e5
commit 179ea6d6fd

View File

@ -76,10 +76,10 @@ namespace de4dot.code.deobfuscators.Dotfuscator {
protected override int detectInternal() {
int val = 0;
int sum = toInt32(foundDotfuscatorAttribute) +
toInt32(stringDecrypter.Detected);
if (sum > 0)
val += 100 + 10 * (sum - 1);
if (stringDecrypter.Detected)
val += 100;
if (foundDotfuscatorAttribute)
val += 10;
return val;
}