Reputation:
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?
Upvotes: 11
Views: 49811
Reputation: 6177
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 Reflector or MS ildasm which comes with the .NET compiler.
Upvotes: 3
Reputation: 51739
Have you tried Salamander, or one of the many other .net decompilers?
Upvotes: 0
Reputation: 8389
If it's VB.NET you can use the RedGate Reflector tool and the FileDisassemler plugin to generate the source code. That is if the exe was not obfuscated
Upvotes: 4
Reputation: 57568
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.
Upvotes: 1
Reputation: 14956
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.
Upvotes: 15