mirror of
https://github.com/qd-today/templates.git
synced 2026-11-23 18:24:36 +00:00
Co-authored-by: Volundio <Volundio@users.noreply.github.com>
481 lines
15 KiB
JSON
481 lines
15 KiB
JSON
[
|
||
{
|
||
"comment": "登录 S1 论坛",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://stage1st.com/2b/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "stage1st.com"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "Cache-Control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "Origin",
|
||
"value": "https://stage1st.com"
|
||
},
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "Upgrade-Insecure-Requests",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://stage1st.com/2b/forum.php"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "fastloginfield=username&username={{ username | urlencode }}&cookietime=2592000&password={{ password | urlencode }}&quickforward=yes&handlekey=ls",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "window\\.location\\.href|欢迎您回来",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "失败|抱歉|错误|errorhandle_|安全提问|验证码",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "访问首页初始化在线会话(触发首次 updatesession)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://stage1st.com/2b/forum.php",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "stage1st.com"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "Cache-Control",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Pragma",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Upgrade-Insecure-Requests",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://stage1st.com/2b/forum.php"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "action=logout",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "外层循环开始(共11轮,每轮约303秒,总计约55.6分钟)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for outer_idx in range(11) %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "内层延时循环开始(12×25秒=300秒)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for inner_idx in range(12) %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时25秒(低于QD默认29.9s上限,避免599超时)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/25",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "内层延时循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "补充延时3秒(确保单轮间隔>300s,适配所有oltimespan阈值)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/3",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "刷新论坛首页累加在线时长(容错心跳:单次网络抖动不中断挂机)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://stage1st.com/2b/forum.php",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "stage1st.com"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "Cache-Control",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Pragma",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Upgrade-Insecure-Requests",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://stage1st.com/2b/forum.php"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "外层循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "触发积分与用户组核算",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://stage1st.com/2b/home.php?mod=spacecp&ac=credit&op=base",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "stage1st.com"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "Cache-Control",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Pragma",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Upgrade-Insecure-Requests",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://stage1st.com/2b/forum.php"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册|尚未登录",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "读取个人资料(提取积分、在线时长与升级进度)",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://stage1st.com/2b/home.php?mod=space&do=profile",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "stage1st.com"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "Cache-Control",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Pragma",
|
||
"value": "no-cache"
|
||
},
|
||
{
|
||
"name": "Upgrade-Insecure-Requests",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://stage1st.com/2b/home.php?mod=spacecp&ac=credit&op=base"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "个人资料",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册|尚未登录",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "UNAME",
|
||
"re": "class=\"vwmy\"><a[^>]*>([^<]+)<",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "GROUP",
|
||
"re": "用户组:\\s*([^<]+)<",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "JF",
|
||
"re": "<li><em>积分</em>\\s*(-?\\d+)</li>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "XY",
|
||
"re": "距离下一级还需\\s*(\\d+)\\s*积分",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "OL",
|
||
"re": "<li><em>在线时间</em>\\s*(\\d+)\\s*小时</li>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Unicode转换并输出挂机日志",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "content={{ (\"挂机完成 | 用户:\" ~ (UNAME | default(username, true)) ~ \"(\" ~ (GROUP | default(\"-\", true)) ~ \")\" ~ \" | 在线时长:\" ~ (OL | default(\"0\", true)) ~ \"小时\" ~ \" | 积分:\" ~ JF ~ \"(距下级还需\" ~ (XY | default(\"0\", true)) ~ \"分/目标\" ~ (add(JF, XY | default(\"0\", true)) | replace(\".000000\", \"\")) ~ \"分)\") | urlencode }}",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\"状态\":\\s*\"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\":\\s*\"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |