mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
485 lines
13 KiB
JSON
485 lines
13 KiB
JSON
[
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{ Domain | default(\"https://sehuatang.org\") }}",
|
||
"headers": [
|
||
{
|
||
"name": "Cookie",
|
||
"value": "_safe="
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "safeid",
|
||
"re": "'\\w{16}'",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "字符串替换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "r=json&p='&s={{safeid}}&t="
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "safeid",
|
||
"re": "\"处理后字符串\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{ Domain | default(\"https://sehuatang.org\") }}",
|
||
"headers": [
|
||
{
|
||
"name": "Cookie",
|
||
"value": "_safe={{safeid}}"
|
||
}
|
||
],
|
||
"cookies": [
|
||
{
|
||
"name": "_safe",
|
||
"value": "{{safeid}}"
|
||
}
|
||
],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{Domain}}/member.php?mod=logging&action=login&infloat=yes&handlekey=login&inajax=1",
|
||
"headers": [],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "loginhash",
|
||
"re": "loginhash=(\\w+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "formhash",
|
||
"re": "formhash\" value=\"(\\w+)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://2fa.run/2fa/{{totp}}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "totp",
|
||
"re": "codetxt\">(\\d+)<",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "登录",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{Domain}}/member.php?mod=logging&action=login&loginsubmit=yes&loginhash={{loginhash|urlencode}}&inajax=1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "formhash={{formhash|urlencode}}&username={{username|urlencode}}&password={{password|urlencode}}&gacode={{totp|urlencode}}",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "欢迎",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "失败",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "错误",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{Domain}}/portal.php",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "tid",
|
||
"re": "tid=(\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "formhash",
|
||
"re": "formhash=(\\w+)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{Domain}}/forum.php?mod=post&action=reply&tid={{tid|urlencode}}&replysubmit=yes&inajax=1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "message=感谢楼主分享&posttime={{timestamp(int)}}&formhash={{formhash}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "成功",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "获取验证公式",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{Domain}}/misc.php?mod=secqaa&action=update",
|
||
"headers": [
|
||
{
|
||
"name": "referer",
|
||
"value": "{{Domain}}/plugin.php?id=dd_sign:index"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "n1",
|
||
"re": "sectplcode\\[2\\] \\+ '(\\d+)\\s.\\s\\d+\\s=",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "n2",
|
||
"re": "sectplcode\\[2\\] \\+ '\\d+\\s.\\s(\\d+)\\s=",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "v",
|
||
"re": "sectplcode\\[2\\] \\+ '\\d+\\s(\\+)\\s\\d+\\s=",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if v %}",
|
||
"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=&s={{add(n1,n2)|urlencode}}&t="
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "sum",
|
||
"re": "\"处理后字符串\": \"(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件不成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% else %}",
|
||
"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=&s={{sub(n1,n2)|urlencode}}&t="
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"OK\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "sum",
|
||
"re": "\"处理后字符串\": \"(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "签到",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{{Domain}}/plugin.php?id=dd_sign&ac=sign&signsubmit=yes&handlekey=pc_click_ddsign&inajax=1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "formhash={{formhash|urlencode}}&secanswer={{sum|urlencode}}",
|
||
"mimeType": "application/x-www-form-urlencoded"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "成功",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "请勿重复签到",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "msg",
|
||
"re": "([\\u4e00-\\u9fa50-9,!。]+)<",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "积分页",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{{Domain}}/home.php?mod=spacecp&ac=credit",
|
||
"headers": [],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "退出",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jq",
|
||
"re": "(金钱: </em>\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jf",
|
||
"re": "(积分: </em>\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "sb",
|
||
"re": "(色币: </em>\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "pf",
|
||
"re": "(评分: </em>\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "nickName",
|
||
"re": "访问我的空间\">(.+?)<",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "yhz",
|
||
"re": ">(用户组: .+?)<",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Unicode转换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "html_unescape=false&content=用户名: {{nickName}} {{yhz}} {{jq | striptags}} {{jf | striptags}} {{sb | striptags}} {{ pf | striptags }}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |