templates/影巢.har
github-actions[bot] b12411f7d7
Update HAR: 影巢 (#801)
Co-authored-by: chen8945 <chen8945@users.noreply.github.com>
2024-11-12 21:21:16 +08:00

237 lines
7.1 KiB
JSON

[
{
"request": {
"method": "POST",
"url": "{{flaresolverr_url}}",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"cookies": [],
"data": "{\n \"cmd\": \"request.get\",\n \"url\": \"https://hdhive.online/login?redirect=%2F\",\n \"maxTimeout\": 120000\n}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "cf_clearance",
"re": "\"name\": \"cf_clearance\".+?\"value\": \"(.+?)\"",
"from": "content"
},
{
"name": "ua",
"re": "\"userAgent\": \"(.+?)\"",
"from": "content"
}
]
}
},
{
"request": {
"method": "POST",
"url": "https://hdhive.online/login?redirect=%2F",
"headers": [
{
"name": "Content-Type",
"value": "text/plain;charset=UTF-8"
},
{
"name": "Origin",
"value": "https://hdhive.online"
},
{
"name": "Referer",
"value": "https://hdhive.online/login?redirect=/"
},
{
"name": "User-Agent",
"value": "{{ua}}"
},
{
"name": "Next-Action",
"value": "b83314229c4b8a89b5e0e64859c9e8ac0b4fd5de"
},
{
"name": "Cookie",
"value": "cf_clearance={{cf_clearance}}"
}
],
"cookies": [],
"data": "[{\"username\":\"{{username}}\",\"password\":\"{{password}}\"}]",
"mimeType": "application/json"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "\\\\u7528\\\\u6237\\\\u4e0d\\\\u5b58\\\\u5728",
"from": "content"
},
{
"re": "\\\\u5bc6\\\\u7801\\\\u4e0d\\\\u6b63\\\\u786e",
"from": "content"
}
],
"extract_variables": [
{
"name": "Authorization",
"re": "\"access_token\":\"(.+?)\"",
"from": "content"
},
{
"name": "id",
"re": "\"id\":(\\d+)",
"from": "content"
}
]
}
},
{
"request": {
"method": "POST",
"url": "https://hdhive.online/api/customer/user/checkin",
"headers": [
{
"name": "Authorization",
"value": "Bearer {{Authorization}}"
},
{
"name": "Origin",
"value": "https://hdhive.online"
},
{
"name": "Referer",
"value": "https://hdhive.online/"
},
{
"name": "User-Agent",
"value": "{{ua}}"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\\\\u4f60\\\\u5df2\\\\u7ecf\\\\u7b7e\\\\u5230\\\\u8fc7\\\\u4e86\\\\uff0c\\\\u660e\\\\u5929\\\\u518d\\\\u6765\\\\u5427",
"from": "content"
},
{
"re": "\\\\u7b7e\\\\u5230\\\\u6210\\\\u529f",
"from": "content"
},
{
"re": "\"success\":true",
"from": "content"
}
],
"failed_asserts": [
{
"re": "Token \\\\u672a\\\\u901a\\\\u8fc7\\\\u9a8c\\\\u8bc1",
"from": "content"
},
{
"re": "\\\\u7f3a\\\\u5c11 Authorization Header Token",
"from": "content"
}
],
"extract_variables": [
{
"name": "msg",
"re": "\"message\":\"(.+?)\",",
"from": "content"
}
]
}
},
{
"request": {
"method": "GET",
"url": "https://hdhive.online/user/{{id}}",
"headers": [
{
"name": "Referer",
"value": "https://hdhive.online/"
},
{
"name": "User-Agent",
"value": "{{ua}}"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "nickname",
"re": "\\\\\"nickname\\\\\":\\\\\"(.+?)\\\\\",",
"from": "content"
},
{
"name": "points",
"re": "\\\\\"points\\\\\":(\\d+),",
"from": "content"
},
{
"name": "days",
"re": "\\\\\"signin_days_total\\\\\":(\\d+),",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=用户名:{{nickname}}\\r\\n 积分:{{points}},总签到天数:{{days}}\\r\\n 签到结果:{{msg}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]