-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: chen8945 <[email protected]>
- Loading branch information
1 parent
e4082b4
commit b442b8b
Showing
2 changed files
with
251 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
[ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "https:///{{domain}}/", | ||
"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" | ||
} | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters