用asp获取微软安全更新列表的代码 小偷程序

来源:asp之家 时间:2011-02-24 11:19:00 

代码如下:


<%
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 class=""label"">.*?<\/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"
%>

标签:安全更新,列表
0
投稿

猜你喜欢

  • 数据库之:Mysql数据库服务器安装与配置

    2010-08-31 14:11:00
  • SQL Server端口更改后的数据库连接方式

    2008-12-29 14:11:00
  • MySQL中XML数据的XPath支持

    2009-12-15 21:57:00
  • 如何使用表格来储存数据库的记录?

    2010-05-16 15:14:00
  • 使用线框图来简化你的产品设计流程

    2011-06-10 13:10:00
  • z-blog文章摘要图文混排

    2009-02-28 13:49:00
  • ASC码对照表

    2008-08-07 13:07:00
  • 避免使用滤镜

    2009-10-13 20:30:00
  • ASP实现文件直接下载的代码

    2011-04-11 10:56:00
  • SQL查询效率-100w数据查询只要1秒

    2008-08-20 18:25:00
  • PSD to CSS —— CSS布局实战新概念系列教程

    2009-05-30 16:40:00
  • ASP 3.0中的新特性

    2008-02-27 13:28:00
  • 15款最佳jQuery LightBox插件

    2010-09-25 12:41:00
  • Oracle数据库的备份与恢复

    2010-07-28 12:52:00
  • prototype-1.4.0注释版源代码下载

    2007-09-30 14:06:00
  • PHP使用Swagger生成好看的API文档

    2023-05-25 09:56:30
  • 框架和框架之间的关系

    2008-01-17 18:54:00
  • CSS样式表中继承关系的空格与不空格

    2007-12-12 13:05:00
  • Firefox 3.5 新增加的支持(整理)

    2009-08-01 12:51:00
  • ASP中Utf-8与Gb2312编码转换乱码问题的解决方法 页面编码声明

    2012-11-30 20:45:55
  • asp之家 网络编程 m.aspxhome.com