返回頂部
關(guān)閉軟件導航
位置:首頁 > 資訊 > 其他>同ip反查域名ASP代碼分享

  前兩天想寫一段同ip反查域名的代碼,在很多網(wǎng)站上找了半天,最后在一個英文站上看見可以通過live.com的搜索結(jié)果提取此類信息,于是寫了下面一段:程序只是測試成功,沒有進行優(yōu)化,查詢效率有點低!

  <%

  Dim strPage

  Function GetPage2(Path)

  t = GetBody(Path)

  GetPage2=BytesToBstr(t,"GB2312")

  End function

  Function GetBody(url)

  on error resume next

  Set Retrieval = CreateObject("Microsoft.XMLHTTP")

  With Retrieval

  .Open "Get", url, False, "", ""

  .Send

  GetBody = .ResponseBody

郵箱反查域名助手

  End With

  Set Retrieval = Nothing

  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

  Public Function GetDomain(TempStr,matchstr)

  set reg=new Regexp

  reg.Multiline=True

  reg.Global=True

  reg.IgnoreCase=true

  reg.Pattern=matchstr

  Set matches = reg.execute(TempStr)

  For Each match in matches

郵箱反查域名助手

  if not instr(GetDomain,match.Value)>0 then

  GetDomain=GetDomain&match.Value

  end if

  Next

  End Function

  dim i

郵箱反查域名助手

  for i=1 to 15

  strPage=strPage&GetPage2(" http://cnweb.search.live.com/results.aspx?q=ip%3A59.54.54.167&first="&i&"1")

郵箱反查域名助手

  next

  strPage=GetDomain(strPage,"(.*?)\/")

  strPage=replace(strPage,"","

  ")

  strPage=replace(strPage,"strPage=replace(strPage,"/","

  ")

  strPage=replace(strPage,"<<","<")

  strPage=GetDomain(strPage,"<li(.*?)\/li>")

  response.write strPage

  %>

如果您覺得 同ip反查域名ASP代碼分享 這篇文章對您有用,請分享給您的好友,謝謝
文章地址:http://m.brucezhang.com/article/other/tipfcymASPdmfx.html
解放雙手無盡可能,有問題添加天線貓微信
主站蜘蛛池模板: 欧美黄成人免费网站大全| 成人AAA片一区国产精品| 久久久久亚洲AV成人无码网站| 亚洲第一成人在线| 2021最新国产成人精品视频| 欧美成人乱妇在线播放| 成人免费无毒在线观看网站| 亚洲欧美成人综合久久久| 成人福利免费视频| 亚洲成人福利网站| 成人欧美一区二区三区1314| 国产69久久精品成人看| 成人乱码一区二区三区AV| 久久精品国产亚洲av成人| 成人午夜小视频| 一级成人毛片免费观看| 免费成人一级片| 成人中文乱幕日产无线码| 日韩国产成人精品视频| 全球中文成人在线| 国产成人精品怡红院| 成人国产午夜在线视频| 窝窝午夜看片成人精品| 午夜成人精品福利网站在线观看| 成人免费的性色视频| 成人毛片免费播放| 成人精品视频一区二区三区尤物| 中文字幕欧美成人免费| 亚洲国产精品无码成人片久久| 成人动漫视频在线| 成人影片在线免费观看| 成人激情免费视频| 成人欧美一区二区三区在线观看 | 日本成人免费在线| 久久久成人影院| 亚洲精品国产成人片| 亚洲激情成人网| 人碰人碰人成人免费视频| 亚洲一成人毛片| 日韩欧美成人免费中文字幕| 成人欧美日韩一区二区三区|