我尝试在插入 USB 闪存驱动器时执行
.exe
文件 - 无需询问用户许可。我的意思是,一旦插入 USB,其上的程序(例如:F:\run.exe
)就会启动,无需用户进行任何点击。
我在
autorun.inf
文件中尝试使用 shell 执行此代码:
[Autorun]
open=
shell\open=Explore
shell\open\Command=rundll32.exe .\\svcpacj.dll,InstallM
shell\open\Default=1
防病毒软件将此文件检测为 gen 蠕虫,但我仍然无法运行
.exe
文件。
这仅意味着自动运行被禁用。这是一个很好的举措,如果您在公司工作,您的网络管理员很可能明智地禁用了它。
如果自动运行被禁用,您将无法执行太多操作来自动执行文件。
您无法在 Windows 7 或 Windows 8 上执行此操作。
Windows 7 删除了此功能。我想是为了防止病毒自动运行。
更多阅读:https://www.addictivetips.com/windows-tips/autorun-inf-does-not-work-in-windows-7-anymore/