how to view code inside dll or exe

Posted by Santosh4u under C# on 9/5/2011 | Points: 10 | Views : 22350 | Status : [Member] | Replies : 4
hi

any body plz tell me any tool/software to view the code inside dll/exe...

Regards
Santosh




Responses

Posted by: Niladri.biswas on: 9/6/2011 [Member] Platinum | Points: 25

Up
0
Down
Use IL Disassembler. It comes with VSSdk by default and can be found in (generally)

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\ildasm.exe

In the Visual Studio prompt, type ildasm and it will open. Then from the File menu, select Open menu or Press (Ctrl +O). From there we can open any PE files like exe,dlls, mod,mdl etc.

Some articles like

a) http://www.art0.org/reversing/introducing-the-ildasm-exe-tool-for-disassembling-net-executables-and-dlls
b) http://www.4guysfromrolla.com/articles/080404-1.aspx

may help u to understand about the tool.

Some 3rd party tools

a) Dot net reflector by RedGate ( http://www.reflector.net/ )

b) ILSpy ( http://wiki.sharpdevelop.net/ILSpy.ashx )

c) Dotnet IL Editor ( http://sourceforge.net/projects/dile/ )

Hope this helps

Thanks


Best Regards,
Niladri Biswas

Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Santosh4u on: 9/6/2011 [Member] Bronze | Points: 25

Up
0
Down
hi Niladri
all the links by posted by you has been tried but one dll is not able to load.
i don't know exactly the problem of this dll.
if u have time,plz download and view the code of this attached dll..


Thanx
Santosh


 Download source file

Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Niladri.biswas on: 9/6/2011 [Member] Platinum | Points: 25

Up
0
Down
Hi,
When i tried to open it thru ILDASM , I received the error BS_SDK.dll" has no valid CLR header and cannot be disassembled I think it is written in unmanaged code. So we need to create a wrapper class and make it as managed assembly and then you need to try.

As an example of doing so, u can go thru this article
http://www.codeproject.com/KB/mcpp/usingcppdll.aspx?fid=308246&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26

Thanks

Best Regards,
Niladri Biswas

Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Santosh4u on: 9/6/2011 [Member] Bronze | Points: 25

Up
0
Down
hi
can u plz do it for me becaz i don't have much idea on that.

plz have a look of this below link been posted by me,i hope u can give me the solution..
http://www.dotnetfunda.com/forums/thread5990-net-code-to-read-fingerprint.aspx

Regards & thanx
Santosh





Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response