有谁知道U盘病毒免疫功能原理是怎样的吗???

2025-04-06 01:18:31
推荐回答(1个)
回答1:

我自己编写的 自己电脑上就用的
你把以下的命令复制到记事本,改后缀为BAT就行
自己看看是什么意思吧,应该懂的吧
@echo off&setlocal EnableDelayedExpansion
color 8B
echo 下面进行U盘病毒免疫 &pause
for /f "skip=1 delims=\ tokens=1,2" %%i in ('fsutil fsinfo drives ^| find ":"') do (for /f

"delims= tokens=1" %%d in ('dir %%i /ah /b') do (if exist autorun.inf attrib -s -h -r "%%d"

& del /f /s /q "%%d".exe >nul)& %%i & md %%i\autorun.inf >nul& cd %%i\autorun.inf >nul& md

g..\\ >nul& cd .. & attrib +s +h autorun.inf>nul)>nul
md c:\autorun.inf >nul& cd c:\autorun.inf >nul& md g..\\ >nul& cd .. & attrib +s +h

autorun.inf>nul
rem 修改注册表
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v nofolderoptions

/t reg_dword /d 0 /f >nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v noviewondrive

/t reg_dword /d 0 /f >nul
reg Add

HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN /v

CheckedValue /t reg_dword /d 2 /f >nul
reg Add

HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN /v

DefaultValue /t reg_dword /d 2 /f >nul
reg Add

HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL /v

CheckedValue /t reg_dword /d 1 /f >nul
reg Add

HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL /v

DefaultValue /t reg_dword /d 2 /f >nul
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t

reg_dword /d 0 /f >nul
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v

DisableRegistryTools /t reg_dword /d 0 /f >nul
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v NoDrives /t

reg_dword /d 0 /F >nul
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v

NoDriveTypeAutoRun /t reg_dword /d 255 /F >nul
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v NoDrives /t

reg_dword /d 0 /F >nul
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v

NoDriveTypeAutoRun /t reg_dword /d 255 /F >nul
echo U盘病毒免疫完成!
echo Writed by SAgE QQ 229964954&pause