Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
hello
 
how i can decompile a exe file(c#)
 
i want see a decomiler program how work?
 
What is the success rate?
Posted 21-Dec-11 10:26am
faezun360
Comments
SAKryukov at 21-Dec-11 15:31pm
   
Decompile into what?
--SA
faezun at 21-Dec-11 15:35pm
   
a c# exe project >> c# source project
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

There is no such thing as success rate. And you did not share with us what is you measure of success.
 
If you simply need to get a the IL code which will successfully compile back in the equivalent assembly, it's 100% successful provided the user of a compiler is not suffering from brain damage. Smile | :) This is routinely used is some techniques which go beyond the topic of the question.
 
You can decompile into IL using ILDASM. See:
http://msdn.microsoft.com/en-us/library/f7dy01k1%28v=VS.100%29.aspx[^].
 
I would recommend using .NET Reflector:
http://en.wikipedia.org/wiki/.NET_Reflector[^],
http://www.reflector.net/[^].
 
Open-source alternative is ILSpy, see:
http://community.sharpdevelop.net/blogs/danielgrunwald/archive/2011/02/04/ilspy-a-new-net-assembly-inspector.aspx[^],
http://wiki.sharpdevelop.net/ilspy.ashx[^],
https://github.com/icsharpcode/ILSpy[^].
 
Using these tools, you can get good quality decompiled C# source.
 
—SA
  Permalink  
v3
Comments
Espen Harlinn at 21-Dec-11 15:58pm
   
My 5 - I've found reflector to be quite useful as it generates c#. While not 100% perfect it can reduce an effort that would take several months to a couple of weeks.
SAKryukov at 21-Dec-11 16:41pm
   
Right. Thank you, Espen.
I see you've been quite busy. How is everything?
--SA
Member 8638251 at 6-Mar-14 5:43am
   
Thank you
faezun at 22-Dec-11 1:39am
   
thank you SAKryukov :))
SAKryukov at 22-Dec-11 1:54am
   
You are welcome.
 
Good luck, call again.
--SA
Monjurul Habib at 22-Dec-11 16:56pm
   
5!
SAKryukov at 22-Dec-11 19:13pm
   
Thank you, Monjurul.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Try
.Net Decompiler[^]
http://www.telerik.com/products/decompiler.aspx[^]
.Net Decompiler is completely integrated with Spices.NET and offers tools to decompile or visually represent .Net code, helps to recover or convert .Net code to the one of six supported languages: MSIL, C#, VB.NET, Delphi.NET, J# or managed C++.
  Permalink  
v2
Comments
SAKryukov at 21-Dec-11 16:44pm
   
I did not see those two before -- good to know; my 5. I mentioned two other possibilities in my answer.
--SA
RaviRanjankr at 22-Dec-11 4:16am
   
Thanks :)
faezun at 22-Dec-11 1:41am
   
thank you RaviRanjonkr :)
RaviRanjankr at 22-Dec-11 4:17am
   
No Problem :)
Monjurul Habib at 22-Dec-11 16:57pm
   
5!
RaviRanjankr at 22-Dec-11 17:20pm
   
Thanks :)
Amir Mahfoozi at 23-Dec-11 4:35am
   
+5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You could try searching C# decompiler[^] in google.
 
There are lots of bits of information there, but I don't think you'll find what you are looking for. From your question I get the idea that you want to decompile a given exe into a fully functional C# Visual Studio solution. It is very unlikely that you will get that.
  Permalink  
Comments
SAKryukov at 21-Dec-11 16:43pm
   
Good idea, my 5. Chances are, I already mentioned the best options (in my answer, please see), but who knows, maybe we can get something better....
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,215
1 DamithSL 5,114
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,747
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 21 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100