mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
239 lines
7.3 KiB
JSON
239 lines
7.3 KiB
JSON
[
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://{{domain|default(\"2dfan.org\")}}/",
|
||
"headers": [
|
||
{
|
||
"name": "cookie",
|
||
"value": "{{cookie}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "https://{{domain}}/"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "<a href=\"/users/not_authenticated\">登录</a>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "<a href=\"/users/new\">注册</a>",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "recheckin",
|
||
"re": "<a href=\"(.+)\">签到</a>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "panel",
|
||
"re": "<a href=\"(.+)\">控制面板</a>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://{{domain}}{{recheckin}}",
|
||
"headers": [
|
||
{
|
||
"name": "referer",
|
||
"value": "https://{{domain}}/"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "<a href=\"/users/not_authenticated\">登录</a>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "<a href=\"/users/new\">注册</a>",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "token",
|
||
"re": "name=\"csrf-token\" content=\"(.+)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://{{domain}}/checkins",
|
||
"headers": [
|
||
{
|
||
"name": "origin",
|
||
"value": "https://{{domain}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "https://{{domain}}{{recheckin}}"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "x-csrf-token",
|
||
"value": "{{token}}"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "checkins_count",
|
||
"re": "\"checkins_count\":(\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "serial_checkins",
|
||
"re": "\"serial_checkins\":(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://{{domain}}{{panel}}",
|
||
"headers": [
|
||
{
|
||
"name": "referer",
|
||
"value": "https://{{domain}}/"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "<a href=\"/users/not_authenticated\">登录</a>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "<a href=\"/users/new\">注册</a>",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "name",
|
||
"re": "<i class=\"icon-user\"></i> (.+) <i class=\"caret\"></i>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jf",
|
||
"re": "<span class=\"muted\">积分:</span>.+</li>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "sw",
|
||
"re": "<span class=\"muted\">声望:</span>.+</li>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "yqd",
|
||
"re": "<span class=\"muted\">已签到:</span>.+</li>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "lxqd",
|
||
"re": "<span class=\"muted\">连续签到:</span>.+</li>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "qdpm",
|
||
"re": "<span class=\"muted\">签到排名:</span>.+</li>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Unicode转换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "html_unescape=false&content=用户名:{{name}}\\r\\n {{jf|striptags}},{{sw|striptags}}\\r\\n {{yqd|striptags}},{{lxqd|striptags}},{{qdpm|striptags}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |