Remove encrypted strings field type
This commit is contained in:
parent
33010b65a7
commit
3a49d2a603
|
@ -165,6 +165,7 @@ namespace de4dot.code.deobfuscators.Spices_Net {
|
||||||
|
|
||||||
if (Operations.DecryptStrings != OpDecryptString.None) {
|
if (Operations.DecryptStrings != OpDecryptString.None) {
|
||||||
addTypeToBeRemoved(stringDecrypter.Type, "String decrypter type");
|
addTypeToBeRemoved(stringDecrypter.Type, "String decrypter type");
|
||||||
|
addTypeToBeRemoved(stringDecrypter.EncryptedStringsType, "Encrypted strings field type");
|
||||||
stringDecrypter.cleanUp();
|
stringDecrypter.cleanUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,22 @@ namespace de4dot.code.deobfuscators.Spices_Net {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TypeDefinition EncryptedStringsType {
|
||||||
|
get {
|
||||||
|
if (encryptedDataField == null)
|
||||||
|
return null;
|
||||||
|
var type = encryptedDataField.FieldType as TypeDefinition;
|
||||||
|
if (type == null || type.Fields.Count != 1 || type.Fields[0] != encryptedDataField)
|
||||||
|
return null;
|
||||||
|
if (type.HasMethods || type.HasEvents || type.HasProperties || type.HasNestedTypes)
|
||||||
|
return null;
|
||||||
|
if (type.Interfaces.Count > 0)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public TypeDefinition Type {
|
public TypeDefinition Type {
|
||||||
get { return decrypterType; }
|
get { return decrypterType; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user