国内流行的内容管理系统(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.

102 lines
4.1KB

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