病毒利用 autorun.inf 掛載惡意程式,並將真實資料夾設為「隱藏+系統」屬性,同時建立同名 .exe 偽裝檔案,導致圖示顯示異常。
@echo off
@echo +------------------------------------------+
@echo 本程序移除病毒設定的隱藏/系統屬性
@echo +------------------------------------------+
@echo.
@echo 請耐心等待...
attrib -s -h *.* /S /D
attrib +s +h "System Volume Information"
attrib +s +h "Recycler"
attrib +s +h +a ntldr
@echo 完成!
@echo on
fix_usb.bat(副檔名必須為 .bat),存放類型選「所有檔案」。fix_usb.bat 複製到隨身碟根目錄,雙擊執行。attrib -s -h *.* /S /D:遞歸移除所有檔案/資料夾的「系統(S)」與「隱藏(H)」屬性,讓真實資料現形。attrib +s +h "System Volume Information" 等:恢復系統資料夾原本應有的保護屬性。.exe、.vbs、autorun.inf 等惡意檔案將可見可刪,徹底清除病毒殘留。autorun.inf 資料夾(而非檔案),內建立 aa. 資料夾(md autorun.inf & cd autorun.inf & md aa..),利用 Windows 不允許同名檔案/資料夾共存特性,阻擋病毒建立 autorun.inf 檔案。