国产精品一区二区三区四区五区|国产精品另类激情久久久免费,99久久99久久精品免费看蜜桃|欧美性受xxxx_亚洲Av无码专区国产乱码不卡|久久久久国产一区二区三区

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

  前兩天想寫一段同ip反查域名的代碼全面協議,在很多網(wǎng)站上找了半天重要部署,最后在一個英文站上看見可以通過live.com的搜索結(jié)果提取此類信息,于是寫了下面一段:程序只是測試成功工具,沒有進(jìn)行優(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://61py.com/article/other/tipfcymASPdmfx.html
解放雙手無盡可能,有問題添加天線貓微信
休宁县| 宣城市| 东辽县| 巨鹿县| 墨脱县| 平凉市| 旬阳县| 珲春市| 黄石市| 滁州市| 汨罗市| 吉安市| 和平区| 织金县| 交城县| 格尔木市| 吉木萨尔县| 宁海县| 天长市| 犍为县| 延川县| 永年县| 广安市| 濮阳市| 丹棱县| 和林格尔县| 枞阳县| 宽城| 嘉禾县| 黄石市| 喀喇| 治县。| 竹北市| 中阳县| 长治市| 平和县| 河南省| 南丹县| 务川| 周宁县| 德令哈市|