diff --git a/de4dot.code/deobfuscators/CliSecure/Deobfuscator.cs b/de4dot.code/deobfuscators/CliSecure/Deobfuscator.cs index a860290f..07790541 100644 --- a/de4dot.code/deobfuscators/CliSecure/Deobfuscator.cs +++ b/de4dot.code/deobfuscators/CliSecure/Deobfuscator.cs @@ -72,6 +72,7 @@ namespace de4dot.code.deobfuscators.CliSecure { class Deobfuscator : DeobfuscatorBase { Options options; + string obfuscatorName = DeobfuscatorInfo.THE_NAME; List cliSecureAttributes = new List(); ProxyDelegateFinder proxyDelegateFinder; @@ -97,7 +98,7 @@ namespace de4dot.code.deobfuscators.CliSecure { } public override string Name { - get { return TypeLong; } + get { return obfuscatorName; } } public Deobfuscator(Options options) @@ -165,9 +166,13 @@ namespace de4dot.code.deobfuscators.CliSecure { void findCliSecureAttribute() { foreach (var type in module.Types) { - if (Utils.StartsWith(type.FullName, "SecureTeam.Attributes.ObfuscatedByCliSecureAttribute", StringComparison.Ordinal) || - Utils.StartsWith(type.FullName, "SecureTeam.Attributes.ObfuscatedByAgileDotNetAttribute", StringComparison.Ordinal)) { + if (Utils.StartsWith(type.FullName, "SecureTeam.Attributes.ObfuscatedByCliSecureAttribute", StringComparison.Ordinal)) { cliSecureAttributes.Add(type); + obfuscatorName = "CliSecure"; + } + else if (Utils.StartsWith(type.FullName, "SecureTeam.Attributes.ObfuscatedByAgileDotNetAttribute", StringComparison.Ordinal)) { + cliSecureAttributes.Add(type); + obfuscatorName = "Agile.NET"; } } }