.NET是code困惑真的值得吗?困惑、NET、code

2023-09-03 11:00:12 作者:烟雨头汀

从我读过,code混淆是不是真的那么难破解,它只会拖延不可避免的。在这种情况下,什么是它的目的是什么?

From what I've read, code obfuscation isn't really that hard to "crack", and it will only delay the inevitable. In that case, what is it's purpose?

如果真有人要偷你的源代码,他们可以。

If someone really wants to steal your source they can.

如果有人需要查看源$ C ​​$下无害的/有帮助的目的,他们不能。

If someone needs to view your source code for harmless/helpful purposes they can't.

您可能不应该存储任何东西在code敏感的,所以这不应该是一个问题。

You probably shouldn't be storing anything sensitive in the code, so that shouldn't be an issue.

如果你不混淆,你仍然不能提供完整的源$ C ​​$ C,所以你可以卖一个源$ C ​​$ C牌。

If you don't obfuscate, you're still not providing the full source code, so you could sell a "source code license".

有趣的是,我所见过的模糊处理的唯一code是可怕的code,有虫子在里面。我需要看看code的唯一原因是要弄清楚的问题是什么,我能做些什么来解决这个问题。

The funny thing is, the only code that I have ever seen obfuscated is terrible code that has bugs in it. The only reason I need to look at the code is to figure out what the problem is and what I can do to fix it.

例如,我需要更换一些ASPDotNetStoreFront图像。当寻找标签的位置,我发现他们都包含在编译code。废话。所以,我想我会反编译code,找出通过正则表达式来取代它的img标签。我试图查看源$ C ​​$ C,看看图像可以可能来自于给定的编译的方法,和反光镜不能处理它,我$因为模糊的对$ psume。我真的没有时间去四处找去comilers /解模糊处理。

For example, I need to replace some of the images in ASPDotNetStoreFront. When looking for the location of the tags, I found that they were contained within compiled code. CRAP. So I figured I would decompile the code, to find out which img tags to replace via Regex. I tried to view the source code to see what images could possibly come from the given compiled method, and reflector can't handle it, I presume because of obfuscation. I don't really have time to go looking around for de-comilers/de-obfuscators.

推荐答案

我认为它是值得的。在你的成本实际上是什么,你做黑客的生活更加困难。即使他们破解它,你必须知道你的任何地方从几个小时浪费了几个星期他们的生活的满意度。仅仅因为一个锁不完美并不意味着你也别把你的门。

I think its worth it. The cost to you is virtually nothing, and you make the hacker's life much harder. Even if they crack it, you have the satisfaction of knowing you wasted anywhere from several hours to several weeks of their lives. Just because a lock isn't perfect doesn't mean you don't lock your doors.