Saturday, August 7, 2010

How to open a dll file?

Recently I was working for a Tool and I was bit familiar and sure that existing dll files can be open to view their source code. I knew there are some tools which help you to do that.

Note: This is only possible if dll not obfuscated.

Obfuscation: It is a process that makes it difficult to reengineer the code. Obfuscating is a way to hide your assembly or EXE code from reflection.

Obfuscation simple meaning is making something difficult to read, understand and interpret. Obfuscation leads to doing something intentionally ambogious and confusing.

The same applies to .Net dll files. We know that .Net assemblies can be open to know what inside using reflector tools provided. So it is the need of individuals or personnel to protect their work that nobody copies or understand.The obfuscation alogorthims may use one of the following approaches.

  • Changing the variables, functions and method name.
  • Using Encoding
  • Using encyrption and dycryption techniques.

I will demonstrate this proces using a tool Red Gat’s .Net Reflector.You can download from here: http://www.red-gate.com/products/reflector/

Step1: Run the tool

Go to File->Open-> Browse the dll file to open. Here I have selected PM.dll file

Step2: Explore your methods, classes, properties to see the code

There are many tools availble like .Net Reflector 2.4 etc. You can download to look into your dll files.

I hope you enjoyed this, but at the same time you should also understand how can you protect your dll not to be open by anyone else if they values.

No comments:

Post a Comment