Chủ Nhật, 1 tháng 3, 2009

Disable Autorun in Vista to Protect Against Malware Infections

anti-virus old school
Tất cả các phiên bản Windows hiện nay có tính năng được gọi là AutoPlayAutoRun. AutoPlay cho phép bạn chọn chương trình nào được dùng cho các ứng dụng media, như là các CD/VCD/DVD chứa nhạc, video, phim, hoặc là hình ảnh. Lấy ví dụ, lần đầu tiên bạn nghe nhạc từ đĩa CD, nếu bạn có nhiều hơn 1 chương trình media player trên máy tính, AutoPlay sẽ hỏi bạn muốn dùng chương trình media player nào. Bạn có thể thay đổi "AutoPlay settings - Thiết lập Autoplay" cho mỗi loại media.

AutoPlay

Autorun là cách để chạy nhiều chương trình hoặc nội dung nổi bậc (như là video trên đĩa CD nhạc) một cách tự động khi bạn bỏ đĩa CD hoặc cắm ổ USB vào máy tính. Khác với AutoPlay ở điểm này, nhưng kết quả là giống nhau, khi được đưa vào, đĩa CD hoặc ổ USB tự động bắt đầu dùng một chương trình nào đó để chạy ứng dụng. Autorun kết hợp chặt chẽ với loại media mà nó dùng và bạn không thể điều chỉnh nó.

Khi một đĩa được bỏ vào hoặc một ổ đĩa được kết nối với máy tính, Windows tìm file có tên là autorun.inf trong thư mục gốc - root directory của đĩa đó. Nếu tìm thấy, Windows thực thi theo hướng dẫn trong file đó mà không cần biết đó là gì (có thể là nhạc và cũng có thể là virus)!!!

Lấy ví dụ, một file autorun.inf trên một CD có thể gồm một dòng là "open=setup.exe". Có nghĩa là máy tính sẽ chạy một cài đặt ngay khi đĩa CD đó được bỏ vào.

Bây giờ tôi biết bạn đang nghĩ là tại sao không disable nó trong Control Panel.

Adjust Autoplay
và bạn có thể làm như thế. Nhưng ngay khi mở ổ đĩa từ from My computer hoặc Windows Explorer, Windows sẽ vẫn cứ chạy file autorun.inf !!!

Bạn có thể cũng tin là có thể tự bảo vệ đối với AutoRun bằng cách sửa lại 2 keys trong RegistryNoDriveAutoRun and NoDriveTypeAutoRun, but it has been shown that these keys can be overridden by a little-known registry key called MountPoints2 which contains cached information about every memory stick or other removable device that your PC has ever seen, and that overrides the NoDriveTypeAutoRun value if you insert a device which the PC already knows about.

The solution to this problem is to globally block autorun.inf files from executing without using the dialog boxes in Vista to do this. Here’s how:

  1. Start Notepad or any text editor.
  2. Copy the text below into the text editor, [everything between the square brackets should be all on one line]REGEDIT4
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionIniFileMappingAutorun.inf]
    @=”@SYS:DoesNotExist”
  3. Save it to your desktop as NoAutoRun.reg. Make sure the extension is .reg and not .txt.
  4. Right-click your new .reg file and choose Merge.
  5. If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
  6. Click Yes when you’re asked “Are you sure you want to add the information in C:NoAutoRun.reg to the registry?

Now the next time you insert a flash drive, CD, DVD, or other removable disc into your system, Windows will not execute the information in any autorun.inf file that may be present. The downside of this is that when you insert a CD or DVD with software on it, you have to find the setup program using My Computer or Windows Explorer and launch it yourself. But I think that’s a small price to pay for the increased security.

Copyright © VistaRevisited.com. All Rights Reserved.

RELATED POSTS:
  • Change which programs Windows uses by default
  • Running Vista’s Compatibility Mode
  • Add 3D Pinball To Windows Vista
  • Remote Differential Compression And Your Vista Network Part 2
  • Add Take Ownership Of Files To Vista’s Right Click Menu
  • Không có nhận xét nào:

    Đăng nhận xét