Home - Forums-.NET - Spices.Net - Automating obfuscation tasks

Spices.Net

NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.

This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler

Automating obfuscation tasks
Link Posted: 05-Dec-2007 06:27
Hi,

I need to automate obfuscation tasks on our build server. I assume that obfuscator console should be used. Trying that approach brought a problem: message box pops up each time when some assembly reference cannot be resolved. Is there any way to prevent that message box to appear? We would like to have possibility to run obfuscation tasks unattended?

Another question is how can we evaluate obfuscation results? Is there any way to get an obfuscation report as an XML file or something? Could you please, give me a hint?

I use Spices.Net v.5.4.2.

Thanks in advance,
Dima
Link Posted: 05-Dec-2007 08:45
1. The best solution for automating obfuscation is MSBuild integration offered by Spices.Obfuscator, please find NineRays.Build.Tasks.dll and documentation how to use tasks offered by that assembly.
Also you can use Spices.Obfuscator in your C#/VB.Net scripts - see the example project in \SDK\SimpleObfuscator.
To solve problem with AssemblyResolver that pop-ups each time when Spices.Obfuscator can't resolve reference to assembly, you should specify search paths (/PATHS argument) to provide Spices.Obfuscator with paths for automatic assembly resolution.
2. Yes, you can export obfuscation results to obfuscation map format (that obfuscation map you can open in Spices.Net environment). Unfortunately that option isn't supported by command line, but you can create Spices.Project file (with Spices.Net environment or OptionsGUI utility coming with Spices.Obfuscator console) and specify Spices.Project.ExportObfuscationMapFile property in Spices.Project and use that file for obfuscation with MSBuild or Spices.Obfuscator console.