Skip to content

Commit a71677e

Browse files
committed
fix: 修正 7b2 站点规则识别
1 parent 6201597 commit a71677e

8 files changed

Lines changed: 54 additions & 9 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.2.61",
4+
"version": "1.2.62",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/headers/header-patterns.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,13 @@
111111
},
112112
{
113113
"name": "GraphQL",
114-
"patterns": ["graphql"],
115-
"evidence": "响应头、Cookie 名称或 URL 包含后端框架线索"
114+
"patterns": [
115+
"(?:^|\\n)(?:content-type|accept):\\s*application/graphql",
116+
"(?:^|\\n)x-graphql",
117+
"url: https?://[^\\s]+/graphql(?:[/?#\\s]|$)",
118+
"graphql-ws"
119+
],
120+
"evidence": "响应头或 URL 包含 GraphQL 端点线索"
116121
},
117122
{
118123
"name": "gRPC",
@@ -2800,6 +2805,11 @@
28002805
"patterns": ["url: https?://open\\.weixin\\.qq\\.com/connect/qrconnect", "url: https?://open\\.weixin\\.qq\\.com/connect/oauth2/authorize"],
28012806
"evidence": "响应 URL 指向微信 OAuth 登录"
28022807
},
2808+
{
2809+
"name": "微信 JS-SDK",
2810+
"patterns": ["url: https?://res\\.wx\\.qq\\.com/open/js/jweixin-[0-9.]+\\.js"],
2811+
"evidence": "响应 URL 指向微信 JS-SDK"
2812+
},
28032813
{
28042814
"name": "微博登录",
28052815
"patterns": ["url: https?://api\\.weibo\\.com/oauth2/authorize"],

public/rules/page/backend-hints-page.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"rules": [
155155
{
156156
"name": "GraphQL",
157-
"patterns": ["\\/graphql(?:\\?|\")|graphql-ws|apollo-client|relay-runtime"]
157+
"patterns": ["\\/graphql(?:[/?#\"'\\s]|$)|graphql-ws|apollo-client|relay-runtime"]
158158
},
159159
{
160160
"name": "gRPC Web",

public/rules/page/frontend-extra.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@
232232
},
233233
{
234234
"name": "NutUI",
235-
"patterns": ["nutui|@nutui\\/|nut-"],
235+
"patterns": [
236+
"nutui|@nutui\\/",
237+
"(?:^|[\\s\"'=])nut-(?:button|cell|popup|icon|form|input|navbar|tabbar|toast|dialog|swiper|countdown|calendar|datepicker|uploader|badge|tag|grid|avatar|overlay|skeleton|rate|steps|menu|searchbar|checkbox|radio|switch|range|progress|noticebar|actionsheet|popover|collapse|table|list|price|address|ecard|card|sku|tour|barrage|signature|video|audio|imagepreview)\\b"
238+
],
236239
"classPrefixes": ["nut-"]
237240
},
238241
{

public/rules/page/frontend-local-libraries.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@
4242
},
4343
{
4444
"name": "Vuex",
45-
"patterns": ["(?:^|/)vuex(?:\\.(?:global|esm-browser|cjs|runtime))?(?:\\.prod)?(?:\\.min)?\\.js(?:[?#].*)?$"],
45+
"resourceHints": ["vuex"],
46+
"patterns": ["(?:^|/)vuex(?:\\.(?:global|esm-browser|cjs|runtime))?(?:\\.prod)?(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"],
4647
"globals": ["Vuex"]
4748
},
49+
{
50+
"name": "Vue ScrollTo",
51+
"patterns": ["(?:^|/)vue-scrollto(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"]
52+
},
53+
{
54+
"name": "LazyLoad",
55+
"patterns": ["(?:^|/)(?:lazyload|lazy-load|vanilla-lazyload)(?:\\.min)?\\.js(?:[?#][^\\s\"'<>]*)?(?:[\"'<>\\s]|$)"]
56+
},
4857
{
4958
"name": "Zooming",
5059
"patterns": ["(?:^|/)zooming(?:\\.min)?\\.js(?:[?#].*)?$"]

public/rules/page/payment-systems.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
{
1010
"name": "支付宝支付",
1111
"confidence": "",
12-
"patterns": ["openapi\\.alipay\\.com/gateway\\.do", "alipay\\.trade", "alipayjsapi", "支付宝支付", "alipay.com"]
12+
"patterns": [
13+
"openapi\\.alipay\\.com/gateway\\.do",
14+
"alipay\\.trade",
15+
"alipayjsapi",
16+
"chosePayType\\(['\"]alipay['\"]\\)",
17+
"b2-alipay",
18+
"支付宝支付"
19+
]
1320
},
1421
{
1522
"name": "微信支付",

public/rules/page/third-party-logins.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"wxLogin",
2121
"微信登录",
2222
"wechat login",
23-
"WeixinJSBridge"
23+
"WeixinJSBridge",
24+
"open_oauth[^\\n]{0,1200}(?:weixin|wechat)"
2425
]
2526
},
2627
{
@@ -32,7 +33,19 @@
3233
{
3334
"name": "支付宝登录",
3435
"kind": "国内账号登录",
35-
"patterns": ["openauth\\.alipay\\.com", "auth\\.alipay\\.com", "alipay.*oauth", "支付宝登录"]
36+
"patterns": [
37+
"openauth\\.alipay\\.com/oauth2/",
38+
"auth\\.alipay\\.com/login/",
39+
"alipay\\.com/[^\\s\"'<>]*(?:oauth|authorize|auth_code)",
40+
"支付宝登录"
41+
]
42+
},
43+
{
44+
"name": "微信 JS-SDK",
45+
"kind": "国内社交登录",
46+
"confidence": "",
47+
"resourceOnly": true,
48+
"patterns": ["res\\.wx\\.qq\\.com/open/js/jweixin-[0-9.]+\\.js"]
3649
},
3750
{
3851
"defaults": {

public/tech-links.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
"Zod": "https://zod.dev",
216216
"Pinia": "https://pinia.vuejs.org",
217217
"Vuex": "https://vuex.vuejs.org",
218+
"Vue ScrollTo": "https://github.com/rigor789/vue-scrollto",
218219
"Apollo Client": "https://www.apollographql.com/docs/react",
219220
"Relay": "https://relay.dev",
220221
"urql": "https://formidable.com/open-source/urql",
@@ -241,6 +242,7 @@
241242
"Packery": "https://packery.metafizzy.co",
242243
"QRious": "https://github.com/neocotic/qrious",
243244
"Sticky Sidebar": "https://github.com/abouolia/sticky-sidebar",
245+
"LazyLoad": "https://github.com/verlok/vanilla-lazyload",
244246
"Zooming": "https://github.com/kingdido999/zooming",
245247
"Video.js": "https://videojs.com",
246248
"Plyr": "https://plyr.io",
@@ -275,6 +277,7 @@
275277
"PWA Manifest": "https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest",
276278
"Service Worker": "https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API",
277279
"Zone.js": "https://github.com/angular/angular/tree/main/packages/zone.js",
280+
"微信 JS-SDK": "https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html",
278281
"Emotion": "https://emotion.sh",
279282
"styled-components": "https://styled-components.com",
280283
"Workbox": "https://developer.chrome.com/docs/workbox",

0 commit comments

Comments
 (0)