添加 swagger 子路径探测与 knife4j 指纹 - #217
Merged
Merged
Conversation
- swagger: path 增加 /swagger-ui.html 与 /swagger-ui/index.html(Springfox/springdoc 典型部署形态,根路径无特征时现有规则识别不到;与 nacos 的 / + /nacos/ 双路径 同款模式) - knife4j: 新增条目,入口固定 /doc.html,匹配 knife4j / SwaggerBootstrapUi 特征 本地验证(observer_ward 2026.6.28):官方库替换 swagger 条目+追加 knife4j 后, 对模拟的 Springfox 子路径部署与 knife4j /doc.html 均命中,普通首页无误报。
…ache service outage)
Contributor
Author
|
Note: the |
cn-kali-team
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
web-fingerprint/00_unknown/swagger.yaml的 path 增加{{BaseURL}}/swagger-ui.html与{{BaseURL}}/swagger-ui/index.html。Springfox / springdoc 的典型部署里 swagger-ui 挂在子路径、根路径是业务页无特征,现有规则(仅/)识别不到这两类形态;与alibaba/nacos.yaml的/+/nacos/双路径是同款模式。web-fingerprint/00_unknown/knife4j.yaml。knife4j 是国内常用的 Swagger 增强 UI,入口固定为/doc.html,页面特征词knife4j/SwaggerBootstrapUi。验证
三层验证(2026-09-16,observer_ward 2026.6.28,官方库替换 swagger 条目并追加 knife4j 后
-p加载):swagger-ui-dist@5.33.0(npm)部署于/swagger-ui/index.html命中swagger;knife4j-openapi3-ui@4.5.0(Maven Central)的doc.html命中knife4j;普通首页无误报。body="SwaggerBootstrapUi"939 资产(title 全为 swagger-bootstrap-ui 家族,区分度好);body="swagger-ui.css" && body="swagger-ui-bundle.js"共现 40.8 万资产;body="swagger-ui.html"引用形态 9,671 资产。doc.html(Vue SPA 启动页 1.9KB)含Knife4j一词(case-insensitive 命中);SwaggerBootstrapUi在 4.x 页面不再出现,condition: or下单词命中即识别,老版本 swagger-bootstrap-ui 部署仍靠该词覆盖。成本说明
合并后每 web 目标多 3 个探测请求(两个 swagger 子路径 + /doc.html),与 nacos 双路径的既有成本同级。