templates/帕斯内网穿透.har
github-actions[bot] bb69183d5d
Add HAR: 帕斯内网穿透 (#838)
Co-authored-by: loveyanglove <loveyanglove@users.noreply.github.com>
2025-01-14 22:10:06 +08:00

220 lines
6.7 KiB
JSON

[
{
"request": {
"method": "POST",
"url": "https://api.passnat.com/public/login",
"headers": [
{
"name": "Host",
"value": "api.passnat.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "sec-ch-ua",
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
},
{
"name": "Accept",
"value": "application/json, text/plain, */*"
},
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "Authorization",
"value": "Bearer"
},
{
"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://dashboard.passnat.com"
},
{
"name": "Sec-Fetch-Site",
"value": "same-site"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Referer",
"value": "https://dashboard.passnat.com/login"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "Accept-Language",
"value": "zh-CN,zh;q=0.9"
}
],
"cookies": [],
"data": "{\"password\":\"{{password}}\",\"phone_number\":\"{{phone}}\",\"platform\":1}",
"mimeType": "application/json"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "请求参数错误",
"from": "content"
}
],
"extract_variables": [
{
"name": "token",
"re": "\"auth_token\":\"(.+)\"",
"from": "content"
}
]
}
},
{
"request": {
"method": "GET",
"url": "https://api.passnat.com/user/checkIn",
"headers": [
{
"name": "Host",
"value": "api.passnat.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "sec-ch-ua",
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
},
{
"name": "Accept",
"value": "application/json, text/plain, */*"
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "Authorization",
"value": "Bearer {{token}}"
},
{
"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://dashboard.passnat.com"
},
{
"name": "Sec-Fetch-Site",
"value": "same-site"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Referer",
"value": "https://dashboard.passnat.com/dashboard"
},
{
"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": [
{
"re": "token解析错误",
"from": "content"
}
],
"extract_variables": [
{
"name": "msg",
"re": "\"msg\":\"(.+)\",",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=签到状态:{{msg}}。"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]