4

I was working on a C#.NET application on windows platform, I was just testing the code and I don't know somehow I messed it up and after making too much efforts on undoing, I am still not able to recover my code. I don't want to write the whole code again.

I only left with its .EXE file that executes well here, I want to know about some techniques or tools so that I can decompile my EXE code into its source code, Is it possible if it is, then please tell me some good decompilers. Any help will be appreciated, Thanks.

3
  • I visited this link, but it is about anti decompilation
    – khk
    Aug 25, 2013 at 10:47
  • 1
    Thank you ph0sec for your answer. It helped me out. I have my Projects spread over 11 hard drives and 4 USB drives but my last update to one of my best programs I cannot find anywhere. With this I was able to recover the missing code in that update.
    – Kevin
    Dec 31, 2013 at 19:02

2 Answers 2

3

you can get pretty decent results with:

  1. .NET Reflector 8
  2. ILSpy - is an open source project. I had experience with it in the past and it gave very good results.
1

To build off of what the last user said, either Reflector or IlSpy will do the job. However that being said I'd recommend IlSpy over Reflector. Both of them will decompile the program into the intermediate language to roughly the same results but I've had better experiences (i.e. smoother, easier) parsing variable values using IlSpy.

But if it's your own code and you remember what all of your variable values are then either one will work fine. Just my two cents.

1
  • 2
    This should have been a comment or edit.
    – 0xC0000022L
    Aug 26, 2013 at 11:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.