2010年1月7日

[資訊安全] 刪除 Firefox 上討厭的 Windows Presentation Foundation 與 Microsoft R DRM

Firefox 的外掛程式中又莫名其妙出現我用不到的 M$ 外掛
只能說一切都是安裝 Microsoft.NET 惹的禍 ("︶︿︶)

雖然 M$ 常常偷偷安裝東西已經不是新聞了
微軟不告而裝的擴充套件 -- Windows 的 Firefox 用戶請小心 By HUNG Chao-Kuei

而 Firefox 也在去年早已解決此項安全性漏洞問題
IE漏洞波及Firefox Mozilla攔阻微軟外掛
對於該漏洞,微軟說明,駭客主要是以惡意的XBAP(XAML Browser Application)來攻擊該漏洞,而受影響的程序為Windows Presentation Foundation (WPF)的PresentationHost.exe。而Firefox使用者之所以受影響,是因為.NET Framwork 3.5 SP1在Firefox裝了一個Windows Presentation Foundation的外掛。
據IDG News Service報導,微軟是在去年二月時釋出Firefox的 .NET Framework Assistant外掛,然而,由於未經使用者同意,而且有難以移除的問題,因此引起了Firefox使用者的抱怨。


但是 Windows Presentation Foundation(WPF) 又在我安裝 Microsoft.NET 後出現了
只好想辦法手動移除,方法如下


  1. Open Registry Editor (type regedit in the Start menu Search box in Vista/Windows 7, or in XP's Run window).
  2. Expand the branches to the following key:
    • On 32-bit systems: HKEY_LOCAL_MACHINE \ SOFTWARE \ Mozilla \ Firefox \ Extensions
    • On x64 systems: HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Mozilla \ Firefox \ Extensions
  3. Delete the value named {20a82645-c095-46ed-80e3-08825760534b} from the right pane.
  4. Close the Registry Editor when you're done.
  5. Open a new Firefox window, and in the address bar, type about:config and press Enter.
  6. Type microsoftdotnet in the Filter field to quickly find the general.useragent.extra.microsoftdotnet setting.
  7. Right-click general.useragent.extra.microsoftdotnet and select Reset.
  8. Restart Firefox.
  9. Open Windows Explorer, and navigate to %SYSTEMDRIVE%\Windows\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation.
  10. Delete the DotNetAssistantExtension folder entirely.
  11. Open the Add-ons window in Firefox to confirm that the Microsoft .NET Framework Assistant extension has been removed.
資料來源:
Remove the Microsoft .NET Framework Assistant (ClickOnce) Firefox Extension

不過我還多了一個步驟才成功移除,就是將下述的登錄檔內所有的東西刪除
HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@microsoft.com/WPF,version=3.5
懶得進去登錄檔裡面編輯的就
新增一個記事本,將下方code文字複製上去
另存成unWPF_x86.reg(適用於32位元作業系統)並執行,就可以跳過上述的1.2.3.4.步驟了
REGEDIT4

;移除 Firefox 的 Windows Presentation Foundation (WPF)
[HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Firefox\extensions]
"{20a82645-c095-46ed-80e3-08825760534b}"=-
[-HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@microsoft.com/WPF,version=3.5]

另存成unWPF_x64.reg(適用於64位元作業系統,未經測試)
Windows Registry Editor Version 5.00

;移除 Firefox 的 Windows Presentation Foundation (WPF)
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\extensions]
"{20a82645-c095-46ed-80e3-08825760534b}"=-
[-HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@microsoft.com/WPF,version=3.5]


所以綜合以上資訊,簡化後,最簡單的步驟為
1. 下載並執行 unWPF_x86.reg(適用於32位元作業系統)unWPF_x64.reg(for 64bit, 未測試)
2. 開啟 Firefox 並在網址列輸入 about:config
3. 於上方篩選條件列輸入 general.useragent.extra.microsoftdotnet 即可快速找到
4. 於 general.useragent.extra.microsoftdotnet 上按滑鼠右鍵並選擇重設,並重啟 firefox
5. 開啟檔案總管輸入 %SYSTEMDRIVE%\Windows\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation
6. 刪除 DotNetAssistantExtension 資料夾
7. 這樣 firefox 的WPF擴充套件就成功移除了 ^_^

補充:如果是出現如同下方圖示的擴充套件,就不需要刪除 DotNetAssistantExtension 資料夾

詳細請見:刪除 Firefox 上討厭的 WPF 之 Microsoft .NET Framework Assistant 小幫手 0.0.0


而另一個 Microsoft R DRM 我是沒什麼意見,但它竟然出現兩個("╯▽╰)
真的是要逼我砍了他嗎(▔皿▔)╯▃▄▅▇◣

從 Firefox 下手,使用 刪除 extensions.rdf 的方法

如果無效就從 Windows Media Player 下手了,反正我也沒在用它
以下為不負責任作法!系統若有異常,請自行負責!
直接在 C:\Program Files\Windows Media Player\ 裡面
刪除 npdrmv2.dll npwmsdrm.dll 兩個檔案
如此一來我的 Firefox 就乾淨多了 ( ̄▽ ̄)/

沒有留言:

張貼留言