|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <title>文件扫描工具</title>
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- <script src="../static/web/js/jquery.min.js"></script>
- <script src="../static/web/js/webajax.js"></script>
- <script src="js/main.js"></script>
- </head>
- <body>
- <table align="center" class="table maintable my-3">
- <tr>
- <td bgcolor="#f5f5f5">文件扫描工具</td>
- </tr>
- <tr>
- <td>
- <?php echo $alter;?>
- <div class="alert alert-info mb-0">
- <ul>
- <li>检测结果:结果仅供参考,请务必查看源码后才删除非法文件</li>
- <li>安全建议:1、有条件的会员把data、system、theme修改为不可对外浏览,static、a目录设置为不允许执行脚本,其它目录禁止写入,系统更安全;2、本检测程以开发模式为标准,如果您的网站目录包含其它系统,此检测程序会产生错误判断;3、检测程序会跳过对模板缓存目录的检测,为了安全起见,检测完成后建议清空模板缓存</li>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <span>文件类型:<input type="text" name="filetype" id="filetype" value="php|inc" class="admin-input-lg"></span>
- <span>代码特征:<input type="text" name="info" id="info" value="eval|cmd|system|exec|_GET|_POST|_REQUEST|base64_decode" class="admin-input-lg"></span>
- </td>
- </tr>
- <tr>
- <td align="center" bgcolor="#e9ecef">
- <button type="button" name="bt1" class="btn btn-success btn-sm" onclick="LoadCtTest();">开始检测</button>
- <button type="button" name="bt2" class="btn btn-outline-success btn-sm" onclick="LoadCtClear();">清空模板缓存</button>
- </td>
- </tr>
- <tr>
- <td id="messagetd">
- <div id="loaddiv" class="text-center" style="display:none"><img src="../static/web/img/loadinglit.gif"></div>
- </td>
- </tr>
- </table>
- <script>
- function LoadCtTest() {
- var filetype = $Obj('filetype').value;
- var info = $Obj('info').value;
- $Obj('loaddiv').style.display = 'block';
- fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp => {
- if (resp.ok) {
- return resp.text()
- }
- throw new Error('系统错误,无法获取数据');
- }).then((d) => {
- $DE('messagetd').innerHTML = d;
- $Obj('loaddiv').style.display = 'none';
- }).catch((error) => {
- console.log(error);
- });
- }
- function LoadCtClear() {
- $Obj('loaddiv').style.display = 'block';
- fetch('sys_safetest.php?action=clear').then(resp => {
- if (resp.ok) {
- return resp.text()
- }
- throw new Error('系统错误,无法获取数据');
- }).then((d) => {
- $DE('messagetd').innerHTML = d;
- $Obj('loaddiv').style.display = 'none';
- }).catch((error) => {
- $DE('messagetd').innerHTML = errMsg;
- });
- }
- </script>
- </body>
- </html>
|