目录
目录X
Katana + Nuclei 批量检测废弃分享插件操作文档
AI摘要(BLUF)
1. 适用场景自动爬取目标站点深层链接(如文章页、二级栏目),批量检测页面中是否残留已停服并存在劫持风险的 JiaThis 与 bShare 分享插件。2. 部署 YAML 扫描模板在当前工作目录下新建 check-bad-plugins.yaml,写入以下规则:YAMLid:detect-deprecated-share-pluginsinfo:name:DetectJiaThisandbSharePluginsauthor:securityseverity:highdescription:DetectsleftoverreferencestodeprecatedJiaThisandbSha……
1. 适用场景
自动爬取目标站点深层链接(如文章页、二级栏目),批量检测页面中是否残留已停服并存在劫持风险的 JiaThis 与 bShare 分享插件。
2. 部署 YAML 扫描模板
在当前工作目录下新建 check-bad-plugins.yaml,写入以下规则:
YAML
id: detect-deprecated-share-plugins
info:
name: Detect JiaThis and bShare Plugins
author: security
severity: high
description: Detects leftover references to deprecated JiaThis and bShare social sharing widgets.
tags: supply-chain,plugins,jiathis,bshare
http:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
condition: or
words:
- "jiathis.com"
- "bshare.cn"
- "static.bshare.cn"
- "jiathis_config"
- "bshare"
case-insensitive: true
extractors:
- type: regex
name: matched-plugin
regex:
- "(?i)(jiathis\.com|bshare\.cn|jiathis_config|bshare)"3. 执行自动化流水线扫描
方式一:管道一键联扫(推荐,全自动)
使用 Katana 自动抓取目标全站 URL 并实时通过管道传给 Nuclei 扫描:
PowerShell
.\katana.exe -u http://www.xxxx.com.cn | .\nuclei.exe -t .\check-bad-plugins.yaml -disable-update-templates
方式二:资产落地后再扫描(适合大型站点)
先保存爬取结果,再进行高并发检测: PowerShell
# 1. 深入 3 层爬取全站 URL 并保存 .\katana.exe -u http://www.xxxx.com.cn -d 3 -o urls.txt # 2. 读取批量 URL 文件并发扫描 .\nuclei.exe -l urls.txt -t .\check-bad-plugins.yaml -c 50 -disable-update-templates