Jan*_*lak 5 c# decompiling dotpeek
I have a problem with decompiling .net assembly. When I open the assembly in dotPeek there is class called frmMain with few hundred variables declared like this:
[SpecialName]
private static int \u0024STATIC\u0024SortByLengthAsc\u002402811241124\u0024xlen;
Run Code Online (Sandbox Code Playgroud)
When i try to export it to project all those lines give errors (STATIC is not defined) even if I change all the \u0024 to $. Am I doing something wrong?
不,该程序集已被混淆,以防止人们(例如您)查看代码并可能“窃取”它。这些变量名称在 IL 中是允许的,但在实际的 C# 代码中不允许,因此这就是它失败的原因。
我知道的唯一补救措施是反向混淆工具,它知道混淆器如何混淆并试图扭转局面。或者你可以手动完成,这通常会花费很多时间,这证明混淆是有回报的。