Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is that possible to extract C# source code from Winforms application exe file

Tags:

c#

winforms

Can someone tell me if it is possible to view source code only using exe file. For example I have made project and in debug there is exe file so if I'll send this to someone he will be able to view it's source code(Using hacking tolls or by something)?

like image 318
Binier Avatar asked Dec 16 '13 17:12

Binier


3 Answers

The answer is Yes

Your code can be de-compiled and can be seen.

I personally use this one for .net:

http://www.jetbrains.com/decompiler/

But it is not the only one, there are many decompilers exist.

like image 133
Shaharyar Avatar answered Oct 17 '22 06:10

Shaharyar


Yep, there's Resharper or ILSpy

like image 33
Sean Avatar answered Oct 17 '22 07:10

Sean


Certainly he/she can see your IL code, the code that has been constructed by your compiler. For instance, a tool for doing this is the MSIL Disassembler http://msdn.microsoft.com/en-us/library/f7dy01k1(v=vs.110).aspx. I suppose having the IL language it wouldn't be difficult to get the C# code.

like image 1
Christos Avatar answered Oct 17 '22 07:10

Christos