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

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

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

  <%

  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代碼分享 這篇文章對(duì)您有用還不大,請(qǐng)分享給您的好友高產,謝謝
文章地址:http://www.61py.com/article/other/tipfcymASPdmfx.html
解放雙手無盡可能,有問題添加天線貓微信