dir_webshell_check
对指定目录发起 Webshell 木马扫描任务,结果写入面板安全日志。
- 路由:
POST /files - action:
dir_webshell_check
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 dir_webshell_check |
| path | 是 | String | 要扫描的目录绝对路径 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 扫描任务已启动 |
| msg | String | 提示信息 |
示例
请求
POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=dir_webshell_check&path=/www/wwwroot
响应
{"status": true, "msg": "正在启动木马查杀进程。详细信息会在面板安全日志中"}