国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.9KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>木马自检程序</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="css/indexbody.css" />
  11. <style type="text/css">
  12. td {
  13. padding-left: 8px;
  14. }
  15. </style>
  16. <script language="javascript" src="../static/js/jquery.js"></script>
  17. <script language='javascript' src='js/main.js'></script>
  18. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  19. <script language='javascript'>
  20. function LoadCtTest() {
  21. var filetype = $Obj('filetype').value;
  22. var info = $Obj('info').value;
  23. $Obj('loaddiv').style.display = 'block';
  24. var myajax = new DedeAjax($DE('messagetd'));
  25. myajax.SendGet2('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info);
  26. $Obj('loaddiv').style.display = 'none';
  27. }
  28. function LoadCtClear() {
  29. $Obj('loaddiv').style.display = 'block';
  30. var myajax = new DedeAjax($DE('messagetd'));
  31. myajax.SendGet2('sys_safetest.php?action=clear');
  32. $Obj('loaddiv').style.display = 'none';
  33. }
  34. </script>
  35. </head>
  36. <body leftmargin="8" topmargin="8" background='images/allbg.gif'>
  37. <div id='loaddiv' style='display:none'>
  38. <p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后,正在操作中...</p>
  39. </div>
  40. <div class="bodytitle mt-3">
  41. <div class="bodytitleleft"></div>
  42. <div class="bodytitletxt" style="padding-left:10px;">用户安全中心</div>
  43. </div>
  44. <?php echo $alter;?>
  45. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable"
  46. style="background:#CFCFCF;">
  47. <tr>
  48. <td width="100%" height="24" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px;">
  49. <b>木马自检程序</b>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td height="73" colspan="2" bgcolor="#FFFFFF">
  54. <strong>安全建议:</strong>
  55. <br />
  56. 1、有条件的用户把中 data、templets、uploads、html、special、images、install目录设置为不允许执行脚本,其它目录禁止写入,系统将更安全;<br />
  57. 2、本检测程以开发模式为标准,如果您的网站目录包含其它系统,此检测程序可能会产生错误判断;<br />
  58. 3、检测程序会跳过对模板缓存目录的检测,为了安全起见,检测完成后建议清空模板缓存。
  59. </td>
  60. </tr>
  61. <tr>
  62. <td height="50" colspan="2" bgcolor="#FFFFFF">
  63. <p>文件类型:
  64. <input name="filetype" type="text" id="filetype" value="php|inc" style="width:420px" />
  65. &nbsp;要检查的文件类型</p>
  66. <p>代码特征:
  67. <input name="info" type="text" id="info" value="eval|cmd|system|exec|_GET|_POST|_REQUEST|base64_decode" style="width:420px" />
  68. &nbsp;特征代码</p>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td height="50" colspan="2" bgcolor="#FFFFFF">
  73. <button type="button" name="bt1" class="btn btn-secondary" onclick="LoadCtTest();">开始检测</button>
  74. &nbsp;
  75. <button type="button" name="bt2" class="btn btn-secondary" onclick="LoadCtClear();">清空模板缓存</button>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td height="30" colspan="2" bgcolor="#F9FCEF">检测结果:(结果仅供参考,请务必查看源码后才删除非法文件)</td>
  80. </tr>
  81. <tr>
  82. <td height="300" colspan="2" id="messagetd" valign="top" bgcolor="#FFFFFF">
  83. </td>
  84. </tr>
  85. </table>
  86. </body>
  87. </html>