您现在的位置是:网站首页> 编程资料编程资料
用asp获取微软安全更新列表的代码 小偷程序_小偷/采集_
2023-05-25
195人已围观
简介 用asp获取微软安全更新列表的代码 小偷程序_小偷/采集_
复制代码 代码如下:
<%
Function Bytes2bStr(vin,cSet)
Dim BytesStream,StringReturn
Set BytesStream = Server.CreateObject("ADODB.Stream")
BytesStream.Type = 2
BytesStream.Open
BytesStream.WriteText vin
BytesStream.Position = 0
BytesStream.CharSet = cSet
BytesStream.Position = 2
StringReturn =BytesStream.ReadText
BytesStream.close
Set BytesStream = Nothing
Bytes2bStr = StringReturn
End Function
Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
m_queryURL = "http://www.microsoft.com/china/technet/security/current.mspx"
XMLHTTP.Open "GET", m_queryURL, false
XMLHTTP.send()
s = XMLHTTP.responseBody
aa = Bytes2bStr(s,"GB2312")
Set re = New RegExp
re.Pattern = ".*?<\/span>"
re.Global = True
re.IgnoreCase = true
re.MultiLine = false
set matches = re.Execute(aa)
dim tmp
tmp = ""
for each match in matches
tmp = tmp&match.value
next
tmp = Replace(tmp,"href=""","target=_blank href=""http://www.microsoft.com")
set fso = server.CreateObject("scripting.filesystemobject")
set f = fso.OpenTextFile(server.mappath("Microsoft.html"),2,true)
f.write(tmp)
f.close
set fso = nothing
response.Redirect "Microsoft.html"
%>
相关内容
- asp 输出换行的详细说明[原创]_应用技巧_
- asp中的rs.open与conn.execute的区别说明_应用技巧_
- javascript增加干扰数据实现简单加密效果_应用技巧_
- asp下通过HTTP_USER_AGENT判断用户是从手机上访问,还是电脑IE上访问_应用技巧_
- ASP读取日期单日期自动补零函数代码_应用技巧_
- asp中获取当前页面的地址与参数的函数代码_应用技巧_
- asp中文件与文件夹常用处理函数(文件后缀、创建文件等)_应用技巧_
- asp中格式化HTML函数代码 SDCMS加强版_应用技巧_
- asp中常用的字符串安全处理函数集合(过滤特殊字符等)_应用技巧_
- Asp中通过简单的例子理解下ByVal和ByRef的用法_应用技巧_
