vb.net 从exe文件中提取VB.NET代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1000254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 14:15:44  来源:igfitidea点击:

Extract VB.NET code from exe file

vb.netdecompiling

提问by Jakob Christensen

I made a program using VB and I lost the source code but I have the exe file. How can I extract the code from the exe file?

我使用 VB 制作了一个程序,但我丢失了源代码,但我有 exe 文件。如何从exe文件中提取代码?

回答by Jakob Christensen

Assuming your exe is a .NET assembly (you tagged the question as VB.NET), you can reverse engineer your exe using tools such as Reflector.

假设您的 exe 是一个 .NET 程序集(您将问题标记为 VB.NET),您可以使用Reflector等工具对您的 exe 进行逆向工程。

回答by Rad

If it's VB.NET you can use the RedGate Reflectortool and the FileDisassemlerplugin to generate the source code. That is if the exe was not obfuscated

如果是 VB.NET,您可以使用RedGate Reflector工具和FileDisassemler插件生成源代码。那就是如果 exe 没有被混淆

回答by merkuro

Since you tagged your question vb.net you might be able to retrieve quite some portions of your code using a .NET disassembler. For example try Lutz Roeder's .Net Reflectoror MS ildasm which comes with the .NET compiler.

由于您标记了您的问题 vb.net,您可能能够使用 .NET 反汇编程序检索代码的相当一部分。例如,尝试Lutz Roeder 的 .Net Reflector或 MS ildasm,它与 .NET 编译器一起提供。

回答by stevehipwell

Use Reflector(assuming .NET) to dissassemble the exe back into code. You will need to create your own class structure, but you can recover the code as any of the supported CLR languages.

使用Reflector(假设是 .NET)将 exe 反汇编成代码。您将需要创建自己的类结构,但您可以将代码恢复为任何受支持的 CLR 语言。

回答by Binary Worrier

Have you tried Salamander, or one of the many other .net decompilers?

您是否尝试过Salamander或许多其他 .net 反编译器之一?

回答by Steven

Trey VB Decompilerand see if that works.

Trey VB Decompiler,看看它是否有效。