国产精品一区二区三区四区五区|国产精品另类激情久久久免费,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://www.61py.com/article/other/tipfcymASPdmfx.html
解放雙手無盡可能,有問題添加天線貓微信
滦南县| 乐亭县| 湾仔区| 集安市| 忻城县| 林甸县| 广州市| 保亭| 北票市| 泰安市| 湟源县| 如东县| 吉木乃县| 罗甸县| 明星| 星子县| 施甸县| 乌恰县| 新丰县| 双城市| 古田县| 紫阳县| 杭州市| 博罗县| 沙雅县| 石狮市| 扬中市| 东山县| 肥西县| 陆河县| 巨野县| 德格县| 中方县| 阳江市| 山西省| 景洪市| 宜昌市| 板桥市| 修文县| 张家港市| 灯塔市|