forked from yck1509/ConfuserEx
-
Notifications
You must be signed in to change notification settings - Fork 11
How To Use The CLI
Alexander Martens edited this page Aug 13, 2017
·
1 revision
To Use The CLI, you can add Rules directly to your AssemblyInfo File or you can make a XML-Style .crproj
[assembly: Obfuscation(Exclude = false, Feature = "preset(none);+anti ildasm;+anti tamper;+constants;+ctrl flow;+anti dump;+anti debug;+invalid metadata;+ref proxy;+resources;+rename(mode=letters,flatten=false);")]
[assembly: Obfuscation(Exclude = false, Feature = "random seed: SeedToKeepRenamingConsistant")]
[assembly: Obfuscation(Exclude = false, Feature = "preset(normal)")]
[assembly: Obfuscation(Exclude = false, Feature = "packer:compressor")]
[assembly: Obfuscation(Exclude = false, Feature = "packer:compressor(key=dynamic)")]
To Override Features On A Per-Class Level, Add [ObfuscationAttribute(Exclude = false, Feature = "-rename")]
Before The Class Declaration
As of Present, Per-Class Obfuscation Techniques Can Only Be Used If Using The CLI Without a .crproj
<project outputDir="C:\Users\USERNAME\Source\Repos\REPONAME\Confused" baseDir="C:\USERNAME\alexandermartens\Source\Repos\REPONAME" seed="SeedToKeepRenamingConsistant" xmlns="http://confuser.codeplex.com">
<rule pattern="true" inherit="false">
<protection id="anti ildasm" />
<protection id="anti tamper" />
<protection id="constants" />
<protection id="ctrl flow" />
<protection id="anti dump" />
<protection id="anti debug" />
<protection id="invalid metadata" />
<protection id="ref proxy" />
<protection id="resources" />
<protection id="rename" />
</rule>
<packer id="compressor" />
</project>