-
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: loveyanglove<[email protected]>
- Loading branch information
1 parent
8228cbb
commit 80920da
Showing
2 changed files
with
344 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,332 @@ | ||
[ | ||
{ | ||
"comment": "账号密码登录", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.ns211.com/wp-admin/admin-ajax.php", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "www.ns211.com" | ||
}, | ||
{ | ||
"name": "Connection", | ||
"value": "keep-alive" | ||
}, | ||
{ | ||
"name": "Content-Length", | ||
"value": "53" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\"" | ||
}, | ||
{ | ||
"name": "Accept", | ||
"value": "*/*" | ||
}, | ||
{ | ||
"name": "Content-Type", | ||
"value": "application/x-www-form-urlencoded; charset=UTF-8" | ||
}, | ||
{ | ||
"name": "X-Requested-With", | ||
"value": "XMLHttpRequest" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-mobile", | ||
"value": "?0" | ||
}, | ||
{ | ||
"name": "User-Agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "Origin", | ||
"value": "https://www.ns211.com" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Site", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "Referer", | ||
"value": "https://www.ns211.com/" | ||
}, | ||
{ | ||
"name": "Accept-Encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "Accept-Language", | ||
"value": "zh-CN,zh;q=0.9" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "action=user_login&username={{username|urlencode}}&password={{password|urlencode}}", | ||
"mimeType": "application/x-www-form-urlencoded" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "\\u7528\\u6237\\u540d\\u6216\\u5bc6\\u7801\\u9519\\u8bef", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [ | ||
{ | ||
"name": "dlzt", | ||
"re": "\"msg\":\"(.*?)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "签到", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.ns211.com/wp-admin/admin-ajax.php", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "www.ns211.com" | ||
}, | ||
{ | ||
"name": "Connection", | ||
"value": "keep-alive" | ||
}, | ||
{ | ||
"name": "Content-Length", | ||
"value": "19" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\"" | ||
}, | ||
{ | ||
"name": "Accept", | ||
"value": "*/*" | ||
}, | ||
{ | ||
"name": "Content-Type", | ||
"value": "application/x-www-form-urlencoded; charset=UTF-8" | ||
}, | ||
{ | ||
"name": "X-Requested-With", | ||
"value": "XMLHttpRequest" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-mobile", | ||
"value": "?0" | ||
}, | ||
{ | ||
"name": "User-Agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "Origin", | ||
"value": "https://www.ns211.com" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Site", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "Referer", | ||
"value": "https://www.ns211.com/" | ||
}, | ||
{ | ||
"name": "Accept-Encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "Accept-Language", | ||
"value": "zh-CN,zh;q=0.9" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "action=user_qiandao", | ||
"mimeType": "application/x-www-form-urlencoded" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "\\u8bf7\\u767b\\u5f55\\u540e\\u7b7e\\u5230", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [ | ||
{ | ||
"name": "msg", | ||
"re": "\"msg\":\"(.*?)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "用户中心", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://www.ns211.com/user", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "www.ns211.com" | ||
}, | ||
{ | ||
"name": "Connection", | ||
"value": "keep-alive" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\"" | ||
}, | ||
{ | ||
"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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36" | ||
}, | ||
{ | ||
"name": "Accept", | ||
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,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://www.ns211.com/" | ||
}, | ||
{ | ||
"name": "Accept-Encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "Accept-Language", | ||
"value": "zh-CN,zh;q=0.9" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "", | ||
"mimeType": "" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "nichen", | ||
"re": "<a class=\"user-names\" href=\"https://www.ns211.com/user\">(.*?)</a>", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "dqye", | ||
"re": "<p>当前余额</p>[\\s|\\S]*?<h3>(.*?)</h3>", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "huiyuan", | ||
"re": "<p><span class=\"label label-default\"><i class=\"fa fa-user\"></i>(.*?)</span>", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "html_unescape=false&content=登录状态:【{{dlzt}}】,签到状态:【{{msg}}】\\r\\n昵称:【{{nichen}}】,会员:【{{huiyuan}}】,当前余额:【{{dqye}}】" | ||
}, | ||
"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