posts - 310, comments - 6939, trackbacks - 0, articles - 3
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          日歷

          <2009年4月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          相冊

          搜索

          •  

          積分與排名

          • 積分 - 1381077
          • 排名 - 18

          最新評論

          C#反編譯器

          Posted on 2009-04-16 20:07 詩特林 閱讀(991) 評論(0)  編輯  收藏 所屬分類: C#

           

          Lutz Roeder's .NET Reflector

          http://www.aisto.com/roeder/dotnet/

          View Source Reflector tool for .NET Silverlight Sites

          One of the nice advantages to Silverlight is that you can view the source of a site to see how things work, but with Silverlight 1.1 Alpha that process became more complex.  While you can still fish through the JavaScript and Xaml to find the .NET assembly(dll) that is doing all the logic it takes a lot more time.

          Thus I decided to write a plugin for Lutz Roeder's Reflector that takes a URL to a Silverlight page and finds the assembly for that page.  It also loads up the JavaScript and root Xaml for the page.

          Download

          Here is all the source and assembly for the 0.2 Alpha of the Reflector Silverlight Browser.

          Install

          To install the plugin:

          1.     Put the "Reflector.SilverlightBrowser.dll" file in the same directory as you have Reflector installed. 

          2.     Launch Reflector

          3.     Choose "View->Add-ins"

          4.     Click Add

          5.     Choose the Reflector.SilverlightBrowser.dll file.

          6.     To test the plugin try the chess game sample from Silverlight.net

          Using the Plugin

          Once it is installed hit "CRTL+U" or "File->Open Silverlight URL". 

          Paste a link to your favorite Silverlight site into the textbox and hit go.

          Protecting Your Code

          So the feedback I get when I tell people about this plugin is how can protect the IP in my code from being seen by other people. I have two pieces of advice on that subject.  First option is to keep the code you want to keep protected on your server and then make webservice calls from your client to that code.

          The second option is to use Obfuscation.  What is Obfuscation you say? "In the context of software, obfuscation is the process of scrambling the symbols, code, and data of a program to prevent reverse engineering." - CLR and .NET Security blog.

          If you would like to learn more about Obfuscation check out this great post.

          Bugs and Features

          First off I wrote this in a matter of a day or two with some great guidance from Lutz Roeder so a big thank you to Lutz. Thus there are inevitably going to be a number of bugs in the code.  You have code so feel free to improve it and use it as you like.

          The major issue I am going to hear about is that some particular site doesn't work correctly, if you find a site that doesn't work that you would like to have work please send me the link.

          Second what features are missing that you would like to see?

          Third I would love to hear any other feedback you might have to offer.

          Enjoy!


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 台东县| 彭水| 右玉县| 安达市| 北海市| 大足县| 新昌县| 崇文区| 南华县| 石城县| 华容县| 钟祥市| 龙陵县| 清镇市| 吴桥县| 慈溪市| 辽中县| 惠安县| 阜阳市| 江山市| 宁河县| 罗源县| 武安市| 江北区| 拉萨市| 衡南县| 榆树市| 满洲里市| 中阳县| 大渡口区| 贵溪市| 大姚县| 定远县| 陆良县| 大丰市| 乐至县| 昭通市| 藁城市| 黎城县| 衡东县| 会东县|