开发者

DLL Decompilation

开发者 https://www.devze.com 2023-02-05 21:50 出处:网络
I\'m trying to decompile a dl开发者_高级运维l with the tool called Reflector, but it shows only the definitions, not the complete code. What is the reason? How can I decompile it completely?

I'm trying to decompile a dl开发者_高级运维l with the tool called Reflector, but it shows only the definitions, not the complete code. What is the reason? How can I decompile it completely?

Regards


Is it a mixed-mode DLL? Have you expanded a method to see its decompiled source?

You might find the FileDisassembler plugin to be helpful (not sure if this is the most recent version).


right click on an assembly, namespace, class, or member and pick "disassemble" from the context menu. or as a shortcut, press the spacebar


Open Reflector

Right click on the dll you want to extract

click Export

Give c:\YourDirectoryName.

You will have your extracted code in c:\YourDirectoryName


To see the code in reflector, you must navigate to a method. If you are looking at a type, then yes - it will only show you definitions, even when disassembled (although there is sometimes an "Expand Methods" button that can be helpful).

If it still doesn't work, even when looking at a method, then the dll is most likely obfuscated or not compiled from code (direct IL can do things that are hard to map back to most languages).


In Reflector, drill down the treeview on the left to find the type whose code you want to view. Once you've found it, click on it to select it and press Spacebar. You'll then see the method declarations to the right. Scroll down to the very bottom of that view, and click the green "Expand Methods" hyperlink.

Alternatively, expand that type in the treeview, select an individual method, and then press Spacebar.

0

精彩评论

暂无评论...
验证码 换一张
取 消