Checker.asp
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:6k
源码类别:

手机WAP编程

开发平台:

ASP/ASPX

  1. <!--#include file="../admin_sb.asp"-->
  2. <%
  3. '************** ASPSecurity  服务器信息探测插件 ****
  4. ' Copyright 2006
  5. ' Create:2006-7-25
  6. ' Update:2006-7-29
  7. '***************************************************
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <link rel="stylesheet" rev="stylesheet" href="../inc/control.css" type="text/css" media="all" />
  13. </head>
  14. <body class="ContentBody">
  15. <div class="MainDiv">
  16. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  17.   <tr>
  18.     <th class="CTitle">雷客图ASP站长安全助手 服务器组件和信息探测
  19.   </tr>
  20.   <tr>
  21.     <td class="CPanel">
  22.         <div id="updateInfo" style="background:ffffe1;border:1px solid #89441f;padding:4px;display:none"></div>
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  24.  <tr>
  25.  <td valign="top" style="padding:5px;width:140px"><img src="../images/Icon/ControlPanel.png" width="128" height="128"/></td>
  26.  <td valign="top">  <div align="left" style="padding:5px;line-height:170%;clear:both;font-size:12px">
  27.      <p></p>
  28.      <table width="80%"  border="0"  style="padding:5px;line-height:170%;clear:both;font-size:12px">
  29.                <tr>
  30.                  <td colspan="2"><div align="center"><strong>服务器信息</strong></div></td>
  31.                  </tr>
  32.                <tr>
  33.                  <td width="25%"><div align="center">服务器名</div></td>
  34.                  <td width="75%">&nbsp;<%=Request.ServerVariables("SERVER_NAME")%></td>
  35.                </tr>
  36.                <tr>
  37.                  <td><div align="center">服务器IP</div></td>
  38.                  <td>&nbsp;<%=Request.ServerVariables("LOCAL_ADDR")%></td>
  39.                </tr>
  40.                <tr>
  41.                  <td><div align="center">服务器端口</div></td>
  42.                  <td>&nbsp;<%=Request.ServerVariables("SERVER_PORT")%></td>
  43.                </tr>
  44.                <tr>
  45.                  <td><div align="center">服务器时间</div></td>
  46.                  <td>&nbsp;<%=Now()%></td>
  47.                </tr>
  48.                <tr>
  49.                  <td><div align="center">IIS版本</div></td>
  50.                  <td>&nbsp;<%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
  51.                </tr>
  52.                <tr>
  53.                  <td><div align="center">脚本超时时间</div></td>
  54.                  <td>&nbsp;<%=Server.ScriptTimeout%> 秒</td>
  55.                </tr>
  56.                <tr>
  57.                  <td><div align="center">Session过期时间</div></td>
  58.                  <td>&nbsp;<%=session.Timeout%> 分钟</td>
  59.                </tr>
  60.                <tr>
  61.                  <td><div align="center">脚本解释引擎</div></td>
  62.                  <td>&nbsp;<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
  63.                </tr>
  64.                <tr>
  65.                  <td><div align="center">站点根目录</div></td>
  66.                  <td>&nbsp;<%=Server.MapPath("")%></td>
  67.                </tr>
  68.                <tr>
  69.                  <td colspan="2"><div align="center"><strong>服务器组件探测</strong></div></td>
  70.                 </tr>
  71. <%
  72. Dim aObj(8)
  73. aObj(0) = "Scripting.FileSystemObject"
  74. aObj(1) = "Adodb.Stream"
  75. aObj(2) = "Shel" & anti & "l.App" & anti & "lication"
  76. aObj(3) = "WScr" & anti & "ipt.Shell"
  77. aObj(4) = "WScript.Network"
  78. aObj(5) = "ADOX.Catalog"
  79. aObj(6) = "JMail.SmtpMail"
  80. aObj(7) = "Microso" & anti & "ft.XMLHTTP"
  81. aObj(8) = "Msxml2.ServerXMLHTTP"
  82. On Error Resume Next
  83. For Each x In aObj
  84. Set objTmp = Server.CreateObject(x)
  85. If Err <> -2147221005 Then
  86. IsSupport = "√"
  87. Else
  88. IsSupport = "×"
  89. End If
  90. Err.Clear
  91. Response.Write "<tr><td><div align=""center"">"&x&"</div></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&IsSupport&"</td></tr>"
  92. Next
  93. if getIP()<>request.ServerVariables("REMOTE_ADDR") then
  94. CIP=getIP()
  95. CP=request.ServerVariables("REMOTE_ADDR")
  96. else
  97. CIP=request.ServerVariables("REMOTE_ADDR")
  98. CP="匿名代理或者未使用代理"
  99. end if
  100. %>
  101.                <tr>
  102.                  <td colspan="2"><div align="center"><strong>客户端交互信息</strong></div></td>
  103.                  </tr>
  104.                <tr>
  105.                  <td><div align="center">客户端IP</div></td>
  106.                  <td>&nbsp;<%=CIP%></td>
  107.                </tr>
  108.                <tr>
  109.                  <td><div align="center">代理IP</div></td>
  110.                  <td>&nbsp;<%=CP%></td>
  111.                </tr>
  112.                <tr>
  113.                  <td><div align="center">客户端浏览器标识</div></td>
  114.                  <td>&nbsp;<%=request.ServerVariables("HTTP_USER_AGENT")%></td>
  115.                </tr>
  116.              </table>
  117.      <p><br/>  
  118.                 </p>
  119.  <a href="#" onClick="javascript:history.go(-1);">返回插件首页</a></div>       
  120.  </tr>
  121. </table>
  122. </td></tr></table>
  123. </div>
  124. </body>
  125. </html>
  126. <%
  127. Function getIP() 
  128.     Dim strIPAddr
  129.     If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" OR InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "unknown") > 0 Then
  130.         strIPAddr = Request.ServerVariables("REMOTE_ADDR")
  131.     ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",") > 0 Then
  132.         strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",")-1)
  133.     ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";") > 0 Then
  134.         strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";")-1)
  135.     Else
  136.         strIPAddr = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
  137.     End If
  138.     getIP = Trim(Mid(strIPAddr, 1, 30))
  139. End Function
  140. %>