mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
517 lines
16 KiB
JSON
517 lines
16 KiB
JSON
[
|
|
{
|
|
"comment": "GB2312编码",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/gb2312",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content={{username}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "username",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://bbs.kfpromax.com/login.php",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Cache-Control",
|
|
"value": "max-age=0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Windows\""
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "Origin",
|
|
"value": "https://bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://bbs.kfpromax.com/login.php"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser={{username}}&pwpwd={{password}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC",
|
|
"mimeType": "application/x-www-form-urlencoded"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://bbs.kfpromax.com/kf_growup.php",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Windows\""
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://bbs.kfpromax.com/index.php"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "safeid",
|
|
"re": "safeid=([a-zA-Z0-9]+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "ok",
|
|
"re": "ok=(.+?)&",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://bbs.kfpromax.com/kf_growup.php?ok={{ok}}&safeid={{safeid}}",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Windows\""
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://bbs.kfpromax.com/kf_growup.php"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "302",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断签到成功",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://bbs.kfpromax.com/kf_growup.php",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Windows\""
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://bbs.kfpromax.com/index.php"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "今天的每日奖励已经领过了",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "你可以领取",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "log_exp",
|
|
"re": "当前成长经验值 \\[ <b>(.+?)</b> \\] 点",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "获取经验值",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://bbs.kfpromax.com/kf_lv200.php",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "bbs.kfpromax.com"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Windows\""
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://bbs.kfpromax.com/index.php"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "log_value",
|
|
"re": "<span class=\"k_f32\">(.+?)</span><br>",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "生成日志",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/urldecode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content=当前进度分: {{log_value}} , 当前经验值: {{log_exp}} 点"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |