. Net obfuscation attributes and a simple way to lift ildasm restrictions

Source: Internet
Author: User

. NET 2.0 provides two obfuscation-related attributes, obfuscationattribute and obfuscateassemblyattribute.
Provides developers with a way to annotate binary files so that obfuscators can correctly process these binary files with minimal external configuration.

When the obfuscation processing tool processes each object, it needs to determine whether the object has such an attribute. If so, it also needs to read the attribute parameter value. And then proceed accordingly.
 
When I was doing this, I mistakenly wrote a character, causingProgramCannot be handled correctly. obfuscation attributes.
When processing attributes, we can only use the unique feature "name" to match, and spelling errors will naturally fail to be found.

This reminds me of another new property provided by NET 2.0: suppressildasmattribute.
Applying the suppressildasmattri attribute to an assembly or module prevents the use of msil disassembly program (ildasm.exe) to disassemble an assembly or module.

Based on the previous lessons, what if the suppressildasmattribute attribute name in ildasm is misspelled?
Apparently, Microsoft developers did not spell it wrong.

Open ildasm.exe in the editor and search "suppressildasmattribute.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.