Home > Uncategorized > Just give me the source code please….

Just give me the source code please….

Source code is really important for us. That’s why I love open source so much. Well. not only as a consumer of open source, but also a producer. Smile 

Reading people codes can give you a huge knowledge about best practice and change how you write the code. Especially if the writer is good developer.

Sometimes we need so badly to see the source code… But we can’t. This is a very painful experience. Maybe we find there’s a strange error in commercial library, or maybe we need to debug in production environment when we can’t debug with our beloved Visual Studio.

Absolutely we need that source code !

Previously I create a blog post about a decompiler. I use RedGate Reflector. But. it’s not free and my trial version has been over. Sad smile 

But, I found telerik is generous enough to create the exact same tools that satisfy all my needs. Thanks guys you are awesome. Just download and install it. Pretty straightforward process.

 

image

You may need to register but that’s okay. You have to give some to get some right ?

After installed, you’ve just need to type JustDecompile in search. What a nice feature from Windows 8 right ?

imageimage

 

All you need to do is just drag the assembly

image

Voila, you can see the source code very clear

image

But, sometimes the result of decompilation is not readable. That’s because the library creator trying to make your life harder by obsfucating the library. No problem. JUstDecompile extensions came to rescue.

image

To install the plugin you’ve just need to go to the menu and find plugin manager

image

I suggest you download all of it. Reflexil also been ported from Reflector. What a good news !

image

You will see that all plugins installed right now

image

Now you will see that the menu is appear in your right click

image

 

Let’s say that you found an obsfucated assembly like this one.

image

could you decode it ? I doubt that. We need to deobsfucate that first.

You can do this by right click the assembly and choose Obsfucator search. It will find the algorithm used for obsfucate and reverse it. Very cool.

image

image

It will clean the file and create a new clean assembly. Of course it’s not perfect but we can read the code and tweak it if we need.

image

Now let’s say we want to patch some bugs and remove some line in the code. Can we do it ? YES We can. We use Reflexil to inject the code or IL.

Choose the method you want to patch.

image

And select reflexil from the main menu.

image

 

You can find an IL. Heck, you can also edit it. That’s depends on your choice, you can replace the IL or you can replace by code.

image

After you are done cracking, hacking, patching or whatever.. you can save the assembly that contains your patch.

image

 

That’s it all you need to know. Go and patch some assembly.

 

Cheers

About these ads
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,568 other followers

%d bloggers like this: