-2

Is it possible to extract source code from a dll file which is create using Java or C++ or C or Python or Other languages ?

I am using .NetReflector to extract source code which is create using C# or VB.net.

if yes please give me tool`s name or tell how can i do this.

Thank`s.

  • 4
    Java doesn't make dll files. You also do understand that .NET dll's are nothing like C or C++ dll's, right? Have you done your homework on this first? – Hovercraft Full Of Eels Jan 10 '12 at 19:11
  • Pretty sure there are plenty of decompilers out there. – Max Jan 10 '12 at 19:11
  • Python: UnPyc; .NET: Reflector; C++ / C: Luck; Java: JD. – vcsjones Jan 10 '12 at 19:13
  • The keyword you are looking for here is "decompiler". You will need to be more specific as to which runtime you are using and i am sure a nicely crafted google search will do you well: http://bit.ly/zOU6mO. – felickz Jan 10 '12 at 19:13
  • Your question is really vague, and the languages you list will vary widely in how easy they are to decompile, and the quality of the results. Moreover, it would help to know what you intend to do with the source code. – David Thornley Jan 10 '12 at 19:14

3 Answers3

3

A DLL is compiled code. You can use tools to de-compile them and get compiler-optimized code, but you cannot get your hands on the original code as it was written before being compiled.

ean5533
  • 8,884
  • 3
  • 40
  • 64
0

.NETReflector is for .NET and uses reflection to analyze .NET assemblies. For executables or libraries that were compiled from C or C++ you'll be hard pressed to get the actual source it was compiled from, since the executable/library is..well, just that, machinecode that can be executed. There's a big difference between that, and languages like C# and Java where an intermediate language comes into play.

diggingforfire
  • 3,359
  • 1
  • 23
  • 33
0

Post on Java Reflector: Reflector for Java?.

Post on C++ Reflector: Is there any concept in c++ like reflector in .Net?

There are also addins for the .NETReflector. Check out: http://reflectoraddins.codeplex.com/. More specifically, there is an addin for C++. Here is the direct link: http://www.sandpapersoftware.com/Main/Reflector.html.

Community
  • 1
  • 1
uadrive
  • 1,249
  • 14
  • 23