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

76 lines
3.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>病毒文件扫描</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/webajax.js"></script>
  12. <script src="js/main.js"></script>
  13. <script>
  14. function LoadCtTest() {
  15. var filetype = $Obj('filetype').value;
  16. var info = $Obj('info').value;
  17. $Obj('loaddiv').style.display = 'block';
  18. fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{
  19. if (resp.ok) {
  20. return resp.text()
  21. }
  22. throw new Error('系统错误,无法获取数据');
  23. }).then((d)=>{
  24. $DE('messagetd').innerHTML = d;
  25. $Obj('loaddiv').style.display = 'none';
  26. }).catch((error) => {
  27. console.log(error);
  28. });
  29. }
  30. function LoadCtClear() {
  31. $Obj('loaddiv').style.display = 'block';
  32. fetch('sys_safetest.php?action=clear').then(resp=>{
  33. if (resp.ok) {
  34. return resp.text()
  35. }
  36. throw new Error('系统错误,无法获取数据');
  37. }).then((d)=>{
  38. $DE('messagetd').innerHTML = d;
  39. $Obj('loaddiv').style.display = 'none';
  40. }).catch((error) => {
  41. $DE('messagetd').innerHTML = errMsg;
  42. });
  43. }
  44. </script>
  45. </head>
  46. <body>
  47. <div id="loaddiv" style="display:none;text-align:center"><img src="../static/web/img/loadinglit.gif" style="vertical-align:middle">请稍后,正在操作中</div>
  48. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  49. <tr>
  50. <td bgcolor="#f8f8f8">木马自检程序</td>
  51. </tr>
  52. <tr>
  53. <td><?php echo $alter;?></td>
  54. </tr>
  55. <tr>
  56. <td>
  57. <span>文件类型:<input type="text" name="filetype" id="filetype" value="php|inc" class="biz-input-lg"></span>
  58. <span>代码特征:<input type="text" name="info" id="info" value="eval|cmd|system|exec|_GET|_POST|_REQUEST|base64_decode" class="biz-input-lg"></span>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>检测结果:结果仅供参考,请务必查看源码后才删除非法文件<br>
  63. 安全建议:1、有条件的用户把data、system、theme修改为不可对外访问,static、a目录设置为不允许执行脚本,其它目录禁止写入,系统将更安全;2、本检测程以开发模式为标准,如果您的网站目录包含其它系统,此检测程序可能会产生错误判断;3、检测程序会跳过对模板缓存目录的检测,为了安全起见,检测完成后建议清空模板缓存</td>
  64. </tr>
  65. <tr>
  66. <td align="center" bgcolor="#fbfce2" class="py-2">
  67. <button type="button" name="bt1" class="btn btn-success btn-sm" onclick="LoadCtTest();">开始检测</button>
  68. <button type="button" name="bt2" class="btn btn-success btn-sm" onclick="LoadCtClear();">清空模板缓存</button>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td id="messagetd" valign="top"></td>
  73. </tr>
  74. </table>
  75. </body>
  76. </html>