Introduction: The modified program needs to be re-obfuscated, but the original obfuscation configuration is overwritten. The program with obfuscation always reports the "cocould not load type 'xxx" error, at first, I thought it was a program problem. After comparison, I found it was a obfuscation problem. As a result, I spent a whole day experimenting with dotfuscator to confuse the Asp.net program. Below I will summarize the practices as follows:
The English level is limited, and improper translation is inevitable. You are welcome to criticize and correct me. Please tell me what you know. Thank you!
1. After a project is created, do not select the input instance (libray). Otherwise, almost all public function variables will not be encrypted or confused, so you can easily see the code.
2. Rename settings
|
During renaming, all class names, functions, variables, and variables that must be explicitly used must be excluded,The following is a description: 1. The class name of the webpage Code itself. Because the webpage class name needs to be explicitly referenced in aspx, it cannot be encrypted. 2. Name of the function to be called in the form of <% = get_aa ()> In the aspx File 3. Variable names that need to be called in the form of <% = value> In the aspx File See the correspondence on the left |
|
In rename, the reverse tracing of characters can be enhanced. |
3. Character Encryption Settings: directly select all
4. Finally, let's take a look at the options tab settings. The following text is from Microsoft and I would like to thank you.
Use this tab to set global options for the project. You can also enable or disable the dotfuscator function on this tab, for example, rename. The following describes the options you can set:
Disable [function]. Dotfuscator can enable or disable each of its conversions.
Generation progress. This option controls the degree of detail of dotfuscator output during generation.
Only conduct investigation. This option indicates that dotfuscator generates a report but does not generate an output assembly.
Here is an article written by other netizens <C # encryption method for obfuscated code using dotfuscator>. For more information, see.