mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
1539 lines
44 KiB
JSON
1539 lines
44 KiB
JSON
[
|
||
{
|
||
"comment": "去除多余参数",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&s=&t="
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "domainSuffix",
|
||
"re": "",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "value",
|
||
"re": "",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "发布页",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{domain}}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "domainSuffixs",
|
||
"re": "/(/go/.+html)/g",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if domainSuffixs %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "倒序",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&t=&s={{domainSuffixs|sort(true)}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "domainSuffixs",
|
||
"re": "/(/go/.+?html)/g",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环开始",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for domainSuffix in domainSuffixs %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if jmUrl %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件不成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% else %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "字符串替换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&t=&s={{regex_replace(domain,'/$')}}{{domainSuffix}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "goUrl",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "获取网址",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{goUrl}}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jmUrlTmp",
|
||
"re": "document.location = \"(.+)\"</script>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{jmUrlTmp}}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "status",
|
||
"re": ".+",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"name": "location",
|
||
"re": ".+",
|
||
"from": "header-location"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if int(status)==200 %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "jmUrl",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&s=&t={{jmUrlTmp}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jmUrl",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if int(status)==301 %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "jmUrl",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&s=&t={{location}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jmUrl",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件不成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% else %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "jmUrl",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p=&s=&t={{domain}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jmUrl",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "url处理",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "p=&t=&s={{regex_replace(\"https://\"+regex_search(jmUrl,\"^(https?://)*(.+?)(/.*)*$\",\"\\\\2\"),\"\\\\['|']\")}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jmUrl",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "首页",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{jmUrl}}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "comicIds",
|
||
"re": "/<a href=\"/album/(\\d+)//g",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "titles",
|
||
"re": "/title=\"(.+?)\"\\s*alt/g",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "dataDailyid",
|
||
"re": "data-dailyid=\"(.+)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "登录",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/login",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "username={{username|urlencode}}&password={{password|urlencode}}&login_remember=on&submit_login=",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "301",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "签到",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/ajax/user_daily_sign",
|
||
"headers": [
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded; charset=UTF-8"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "empty"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "cors"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "x-requested-with",
|
||
"value": "XMLHttpRequest"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "daily_id={{dataDailyid}}&oldStep=1",
|
||
"mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "{\"msg\":\"\"}",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "msg",
|
||
"re": "\"msg\":\"([^\"]+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "error",
|
||
"re": "\"error\":\"([^\"]+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环开始",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for value in range(0, 6, 1) %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "点击广告",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{jmUrl}}/ajax/ad_check",
|
||
"headers": [
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded; charset=UTF-8"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "empty"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "cors"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "user-agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "x-requested-with",
|
||
"value": "XMLHttpRequest"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "",
|
||
"mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时3秒",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/3",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "循环开始",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for value in range(10, 14, 1) %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "喜欢作品",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/ajax/vote_album",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}/album/{{comicIds[value]|urlencode}}/"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "album_id={{comicIds[value]|urlencode}}&vote=likes",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "\"msg\":\"\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时3秒",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/3",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "Copy_账号信息",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{jmUrl}}/user",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "title",
|
||
"re": "<div class=\"header-profile-row-value user-current-title\">(.+?)</div>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "lv",
|
||
"re": ".+称号.+\\s+.+\\s+.+\\s+.+\\s+(\\d+)\\s.+",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "exp",
|
||
"re": "<span class=\"header-profile-exp\">\\((.+?)\\)</span>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "favorite",
|
||
"re": "<div class=\"header-profile-row-value\">(\\d+)</div>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jcoins",
|
||
"re": "<div class=\"header-profile-row-value \">(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断用户等级",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if int(lv)>3 %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环开始",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% for value in range(10, 15, 1) %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "发表评论",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/ajax/album_comment",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}/album/{{comicIds[value]|urlencode}}/"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "video_id={{comicIds[value]|urlencode}}&comment={{shuffle(titles)[value]|urlencode}}&originator=&status=true",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "\"err\":true",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "commentId",
|
||
"re": "delete_comment_album_(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时10秒",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/10",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "回复评论",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/ajax/album_comment",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}/album/{{comicIds[value]|urlencode}}/"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "video_id={{comicIds[value]|urlencode}}&comment={{shuffle(titles)[value]|urlencode}}&comment_id={{commentId|urlencode}}&forum_subject=1&originator=&is_reply=1",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "\"err\":true",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "cid",
|
||
"re": "delete_comment_album_(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时3秒",
|
||
"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": "POST",
|
||
"url": "{{jmUrl}}/ajax/album_comment_delete",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}/album/{{comicIds[value]|urlencode}}/"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "type_id={{comicIds[value]|urlencode}}&comment_id={{cid|urlencode}}",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "\"msg\":\"\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时3秒",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/3",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "删除发表评论",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{jmUrl}}/ajax/album_comment_delete",
|
||
"headers": [
|
||
{
|
||
"name": "accept-encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "accept-language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
},
|
||
{
|
||
"name": "cache-control",
|
||
"value": "max-age=0"
|
||
},
|
||
{
|
||
"name": "content-type",
|
||
"value": "application/x-www-form-urlencoded"
|
||
},
|
||
{
|
||
"name": "origin",
|
||
"value": "{{jmUrl}}"
|
||
},
|
||
{
|
||
"name": "referer",
|
||
"value": "{{jmUrl}}/album/{{comicIds[value]|urlencode}}/"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "sec-fetch-dest",
|
||
"value": "document"
|
||
},
|
||
{
|
||
"name": "sec-fetch-mode",
|
||
"value": "navigate"
|
||
},
|
||
{
|
||
"name": "sec-fetch-site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "sec-fetch-user",
|
||
"value": "?1"
|
||
},
|
||
{
|
||
"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/120.0.0.0 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "type_id={{comicIds[value]|urlencode}}&comment_id={{commentId|urlencode}}",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "\"msg\":\"\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "延时3秒",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "api://util/delay/3",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "For 循环结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endfor %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "账号信息",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{jmUrl}}/user",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "title",
|
||
"re": "<div class=\"header-profile-row-value user-current-title\">(.+?)</div>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "lv",
|
||
"re": ".+称号.+\\s+.+\\s+.+\\s+.+\\s+(\\d+)\\s.+",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "exp",
|
||
"re": "<span class=\"header-profile-exp\">\\((.+?)\\)</span>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "favorite",
|
||
"re": "<div class=\"header-profile-row-value\">(\\d+(,\\d+)*)</div>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jcoins",
|
||
"re": "<div class=\"header-profile-row-value \">(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "生成日志",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "content={{[__log__,\"\\r\\n\"]|join(\"\")}}地址:{{jmUrl}}\\r\\n用户:{{username}}\\r\\n称号:{{title}}\\r\\n等级:{{lv}}\\r\\n经验:{{exp}}\\r\\nJCoins:{{jcoins}}\\r\\n可收藏数:{{favorite}}\\r\\n签到信息:{{error}}{{msg}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |