meetrevision / playbook

A lightweight, stable, and performance-focused customized version of Windows that enhances privacy and compatibility
https://www.revi.cc
Other
955 stars 75 forks source link

Disable autorun in explorer #21

Closed wevsty closed 1 year ago

wevsty commented 1 year ago

Since autorun.inf has been abused, I think autorun should be disabled by default for security reasons.

couleurm commented 1 year ago

Is this the sorta feature that automatically plays the movie in the CD you put in?

wevsty commented 1 year ago

Is this the sorta feature that automatically plays the movie in the CD you put in?

By default when you insert a CD/DVD/USB disk, Windows tries to read the autorun.inf in the root directory of it and displays the disk icon and what you do when you double-click on the disk icon as configured in autorun.inf.

for example: If there is an autorun.inf

[autorun]
open=setup.exe
icon=setup.exe,0
label=My install CD

When this file is in the root directory of the USB and you double-click the USB icon in Explorer, Windows will automatically execute setup.exe for you. After disabling the autorun function, double-clicking on the USB disk will display the contents of the USB disk without executing setup.exe. In earlier versions of windows (before windows 7) the system would automatically execute setup.exe without even double clicking on it. These features have been abused by virus.