从预编译的 ASP.NET 网站获取源代码?

发布于 2024-08-12 01:35:49 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

携君以终年 2024-08-19 01:35:49

我会使用.NET 反射器。如果您有 PDB 文件和 DLL,您的原始变量名称将被保留(假设您没有运行任何类型的混淆器)。

I would use .NET reflector. Your original variable names will be preserved (providing you did not run any kind of obfuscator) if you have the PDB files as well as the DLLs.

满天都是小星星 2024-08-19 01:35:49

我建议尝试反映您编译的代码,看看它的可读性如何。

http://www.red-gate.com/products/reflector/

I would suggest trying to reflect your compiled code and see how readable it comes out.

http://www.red-gate.com/products/reflector/

半葬歌 2024-08-19 01:35:49

全程反光镜。您不能依赖局部变量名称,因为它们实际上并不存在(只有字段保留它们的名称),但是拥有匹配的 pdb 将大有帮助。如果您使用 pro/EAP< /a> 版本的反射器它将为您完成必须的工作(生成完整的 C# 反汇编等,因此您不必逐个方法或使用插件)。

当然,您可能仍然需要单独查看每个目录。

Reflector all the way. You can't rely on local variable names since they don't really exist (only fields retain their names), but having the matching pdb would go a long way to helping. If you use the pro/EAP version of reflector it will do must of the work for you (generating the full C# disassembly etc, so you don't have to go method-by-method or use a plugin).

You may still need to look at each directory separately, of course.

陌伤ぢ 2024-08-19 01:35:49

最好的办法就是使用这样的反编译器 http://www.red-gate .com/products/reflector/。您将丢失变量名称和注释,但您得到的内容将被编译。

很糟糕,但可能比从头开始要好得多。

Best you are going to get is with a decompiler like this http://www.red-gate.com/products/reflector/. You are going to lose variable names and comments, but what you get will compile.

Sucks, but probably a lot better then starting from scratch.

耶耶耶 2024-08-19 01:35:49

我使用 Telerik 的 JustDecompile 从预编译站点获取源代码。它是免费的,并且已经完成了我需要的一切。

http://www.telerik.com/products/decompiler.aspx

I used Telerik's JustDecompile to get the source code back from a precompiled site. It's free and has done everything I've needed.

http://www.telerik.com/products/decompiler.aspx

情绪失控 2024-08-19 01:35:49

Salamander - .NET 反编译器
http://www.remotesoft.com/salamander/index.html

我已经从未使用过这个工具,但他们在 .NET rock 上讨论过它!不久前。 http://www.dotnetrocks.com/default.aspx?showNum=194

Salamander - a .NET decompiler
http://www.remotesoft.com/salamander/index.html

I've never used this tool, but they talked about it on .NET rocks! a while back. http://www.dotnetrocks.com/default.aspx?showNum=194

想念有你 2024-08-19 01:35:49

我遇到了类似的问题并使用 Reflector 对其进行反编译。我得到了源代码,然后更改了我想要的部分,然后重建它。然后我再次将该 dll 复制到生产站点。它开始反映我的变化。这很容易,一点也不困难,也许是因为预编译站点的每个页面都有dll,并且是可更新的,所以dll中只有代码隐藏文件。

供参考:http://www.reflector.net/

I had the similar issue and used Reflector to Decompile it. I got the source code, then changed the bit I wanted, and rebuild it. Then I copied that dll again to Production site. It started to reflect my changes. It was very easy and not at all difficult, maybe because Precompiled site had dlls for every page, and was updatable , so had only code-behind file in dll.

For reference: http://www.reflector.net/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文