control flow obfuscation error on advanced mode

Dec 21, 2011 at 8:38 PM

Hi, i am trying to use confuser on advanced mode to add control flow obfuscation on an assembly and getting the following error:

Failed!
Exception details :
System.ArgumentException: Já foi adicionado um item com a mesma chave.
   em System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   em System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   em System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   em Confuser.Core.Engines.RenameEngine.AnalysisResource(ModuleDefinition mod, Int32 resId) na D:\Temp\AN_Obfuscated\confuser\code\Confuser.Core\Engines\RenameEngine.cs:linha 622
   em Confuser.Core.Engines.RenameEngine.Analysis(ModuleDefinition mod) na D:\Temp\AN_Obfuscated\confuser\code\Confuser.Core\Engines\RenameEngine.cs:linha 393
   em Confuser.Core.Engines.RenameEngine.Analysis(Logger logger, IEnumerable`1 asms) na D:\Temp\AN_Obfuscated\confuser\code\Confuser.Core\Engines\RenameEngine.cs:linha 279
   em Confuser.Core.Confuser.Initialize(StrongNameKeyPair& sn) na D:\Temp\AN_Obfuscated\confuser\code\Confuser.Core\Confuser.cs:linha 253
   em Confuser.Core.Confuser.Confuse(ConfuserParameter param) na D:\Temp\AN_Obfuscated\confuser\code\Confuser.Core\Confuser.cs:linha 146

 

What can i do to make this obfuscation wright?

 

Thanks,

Leonardo Porto

Coordinator
Dec 31, 2011 at 3:07 PM

Hi,

Please attach a sample program before and after confuser processed.

Jan 2, 2012 at 11:49 AM

I have run confuser on visual studio and it seens that this error only occur when a third part assembly (referenced by my assembly) is already obfuscated. If I remove this assembly from the list of assemblys on debug mode, it works fine.

De: yck1509 [email removed]
Enviada em: sábado, 31 de dezembro de 2011 13:07
Para: leonardo@spinengenharia.com.br
Assunto: Re: control flow obfuscation error on advanced mode [Confuser:283807]

From: yck1509

Hi,

Please attach a sample program before and after confuser processed.