templates/icc2022.har
github-actions[bot] 472a49c465
Add HAR: icc2022 (#832)
Co-authored-by: Carnia <Carnia@users.noreply.github.com>
2025-01-10 08:13:47 +08:00

161 lines
5.1 KiB
JSON

[
{
"comment": "使用cookie请求个人信息",
"request": {
"method": "GET",
"url": "https://www.icc2022.com/attendance.php",
"headers": [
{
"name": ":authority",
"value": "www.icc2022.com"
},
{
"name": ":method",
"value": "GET"
},
{
"name": ":path",
"value": "/attendance.php"
},
{
"name": ":scheme",
"value": "https"
},
{
"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": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9"
},
{
"name": "cache-control",
"value": "no-cache"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "pragma",
"value": "no-cache"
},
{
"name": "priority",
"value": "u=0, i"
},
{
"name": "referer",
"value": "https://www.icc2022.com/login.php?returnto=attendance.php"
},
{
"name": "sec-ch-ua",
"value": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "sec-fetch-dest",
"value": "document"
},
{
"name": "sec-fetch-mode",
"value": "navigate"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "sec-fetch-user",
"value": "?1"
},
{
"name": "sec-gpc",
"value": "1"
},
{
"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/131.0.0.0 Safari/537.36"
},
{
"name": "cookie",
"value": "{{cookie}}"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "欢迎回来",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "today",
"re": "签到已得(.+), 补签卡",
"from": "content"
},
{
"name": "all",
"re": "<a href=\"mybonus.php\">使用</a>(.+)<a href=\"attendance.php\" class=\"\">",
"from": "content"
},
{
"name": "table1",
"re": "td class=\"bottom\" align=\"left(.+)td class=\"bottom\" align=\"right",
"from": "content"
},
{
"name": "table2",
"re": "这是您的(.+)张。",
"from": "content"
}
]
}
},
{
"comment": "写日志",
"request": {
"method": "GET",
"url": "api://util/string/replace?r=text&t=%C2%A0&p=%C2%A0&s=%E4%BB%8A%E6%97%A5%E7%A7%AF%E5%88%86%E4%B8%BA%3A%20{{today|urlencode}}%C2%A0%EF%BC%9B%E5%85%A8%E9%83%A8%EF%BC%9A{{all|urlencode}}%EF%BC%9B%E4%BF%A1%E6%81%AF%EF%BC%9A{{table2|urlencode}}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": ".+",
"from": "content"
}
]
}
}
]