mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
294 lines
8.2 KiB
JSON
294 lines
8.2 KiB
JSON
[
|
|
{
|
|
"comment": "判断是否填写Cookie",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% if not cookie %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "获取登录前formhash",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://www.gebi1.com/member.php?mod=logging&action=login&infloat=yes&handlekey=login&inajax=1&ajaxtarget=fwin_content_login",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "formhash",
|
|
"re": "\"formhash\".*?value=\"(.*?)\"",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "loginhash",
|
|
"re": "loginhash=([^\\s\"&]+)",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "密码登录获取Cookie",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://www.gebi1.com/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash|urlencode}}&inajax=1",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "formhash={{formhash}}&referer=https%3A%2F%2Fwww.gebi1.com%2F&username={{username|urlencode}}&password={{password|urlencode}}&questionid=0&answer=",
|
|
"mimeType": "application/x-www-form-urlencoded"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "欢迎您回来",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"re": "username':'(.+)','usergroup",
|
|
"from": "content",
|
|
"name": "username"
|
|
},
|
|
{
|
|
"re": "uid':'(\\d+)'",
|
|
"from": "content",
|
|
"name": "uid"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断块结束",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% endif %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "生成时间戳",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "api://util/timestamp",
|
|
"headers": [],
|
|
"cookies": []
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"re": "(\\d{10})",
|
|
"from": "content",
|
|
"name": "t"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "获取hash",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://www.gebi1.com/home.php?mod=spacecp&ac=credit&showcredit=1",
|
|
"headers": [],
|
|
"cookies": [
|
|
{
|
|
"name": "cookie",
|
|
"value": "{{cookie}}"
|
|
}
|
|
]
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "个人资料",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "您需要先登录",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"re": "formhash=(\\w*)\"",
|
|
"from": "content",
|
|
"name": "hash"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "签到",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://www.gebi1.com/plugin.php?id=k_misign%3Asign&operation=qiandao&format=button&formhash={{ hash |urlencode}}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "formhash={{ hash |urlencode}}&qdxq=kx",
|
|
"mimeType": "application/x-www-form-urlencoded"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "签到成功",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"re": "今日已签",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "qd",
|
|
"re": "连续.*?([\\d.]+).*天",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "accumulate",
|
|
"re": "已累计签到.*?([\\d.]+).*天。",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"re": "签到成功",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "签到状态判断",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% if status==\"签到成功\" %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "Unicode转换",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content=隔壁网签到:已连续签到{{qd}}天,累计签到{{accumulate}}天。"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断条件不成立",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% else %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "Unicode转换",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content=隔壁网签到:今天已经签到咯"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断块结束",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% endif %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": []
|
|
}
|
|
}
|
|
] |