反编译受保护的 C# [英] Decompile protected C#
问题描述
我有一个 C# 程序,我想反编译它,我使用了 [ILSpy &NetReflector] 并且一切正常,程序被反编译,但源被加密或以某种方式受到保护,因为所有 .cs 文件都不满足我想要的确切代码.我在其他程序上尝试了反编译,结果很好,但只有这个文件.这是加密的.cs文件
I have a C# program and i want to decompile it, i used [ILSpy & NetReflector] and everything worked fine the program was decompiled but the source was encrypted or protected in a way because all the .cs file doesn't content the exact code that i want. I tried the decompiling on other programs and the results was nice but only this file. and this is a picture for the encrypted .cs files
推荐答案
您要查看的代码已使用混淆器进行编译,以阻止人们对其进行反编译.混淆器重新排列和重命名代码中的内容,使计算机仍然可以运行它们,但人类更难理解它们.
The code you're trying to look at has been compiled with an obfuscator to discourage people from decompiling it. The obfuscator re-arranges and renames things in the code in such a way that the computer can still run them, but they're harder for a human to understand.
混淆的步骤之一是用乱七八糟的随机字符交换所有漂亮的人类可读的变量、类和方法名称.这就是为什么您的反编译文件中混杂着中文、韩文、希腊文、印地文等字母.这一步是不可逆转的,因为它们没有被加密,它们只是被废话取代.
One of the steps in obfuscation is swapping all the nice human-readable variable and class and method names with jumbles of random characters. That's why your decompiled files have a crazy mixture of Chinese, Korean, Greek, Hindi etc letters in them. That step is irreversible, because they're not encrypted, they're just replaced with nonsense.
这篇关于反编译受保护的 C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!