设为首页 加入收藏

TOP

ASP小偷偷取地址并生成html
2011-05-31 17:58:57 来源: 作者: 【 】 浏览:582次 评论:0
<%
function getHTTPPage(url)
    dim Http
    set Http=server.createobject("MSXML2.XMLHTTP")
    Http.open "GET",url,false
    Http.send()
    if Http.readystate<>4 then 
        exit function
    end if
    getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
    set http=nothing
    if err.number<>0 then err.Clear 
end function
Function BytesToBstr(body,Cset)
        dim objstream
        set objstream = Server.CreateObject("adodb.stream")
        objstream.Type = 1
        objstream.Mode =3
        objstream.Open
        objstream.Write body
        objstream.Position = 0
        objstream.Type = 2
        objstream.Charset = Cset
        BytesToBstr = objstream.ReadText 
        objstream.Close
        set objstream = nothing
End Function
Dim Url,Html
Url="http://www.dadui.com/index_mb.asp"
Html = getHTTPPage(Url)
dim filename,MDBpath,fso,fout
filename="../index.htm"
MDBpath="./"
Set fso = Server.CreateObject("Scripting.FileSystemObject")
您看到此篇文章时的感受是:
Tags: 责任编辑:administrator
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到QQ空间
分享到: 
上一篇求助关于远程访问ACCESS数据库的.. 下一篇基于B/S下的IC智能卡的安全问题

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

相关栏目

最新文章

图片主题

热门文章

推荐文章

相关文章

广告位