You can use Macrobject Obfuscator.NET command line when you need Obfuscator.NET to obfuscate an assembly automatically for you in batch file, or in scheduled task, etc. The command line of Obfuscator.NET is as below:
Obfuscator.exe /pFile=<File>[;OutFile=<OutFile>][;Auto=1][;Overwrite=1][;Op:<Option>=<Value>;...]
Note:
Arguments in [] are
optional.
Command-line arguments:
Argument |
Value |
Description |
File |
<File> |
.mobfproj file or source assembly file (.exe/.dll) It must be enclosed in "" (double
quotation marks) if it contains space characters |
OutFile |
<OutFile> |
The output assembly filename It must be enclosed in "" (double
quotation marks) if it contains space characters |
Auto |
1 |
Obfuscate automatically and then close Obfuscator.NET |
Overwrite |
1 |
Overwrite existing file without prompts |
op:dotNet |
1.1/2.0/3.0/3.5 |
Options “.NET Framework” |
op:isFlowObf |
true/false |
Options “Flow
Obfuscation” |
op:Irreversibility |
true/false |
Options “Advanced Flow Obfuscation” |
op:DetectObfAttr |
true/false |
Options “Detect ObfuscationAttribute” |
Examples:
"C:\...\Obfuscator.exe" /pFile=test.dll;Auto=1;Overwrite=1;Op:dotNet=3.0;Op:isFlowObf=1
"C:\...\Obfuscator.exe" /pFile=test.mobfproj