Add HAR: icc2022 (#832)

Co-authored-by: Carnia <Carnia@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-01-10 08:13:47 +08:00 committed by GitHub
parent 19960929cc
commit 472a49c465
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 173 additions and 0 deletions

161
icc2022.har Normal file
View File

@ -0,0 +1,161 @@
[
{
"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"
}
]
}
}
]

View File

@ -3804,6 +3804,18 @@
"date": "2025-01-05 19:10:11",
"version": "20250105",
"commenturl": "https://github.com/qd-today/templates/issues/828"
},
"icc2022": {
"name": "icc2022",
"author": "好人",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/icc2022.har",
"update": false,
"comments": "每日签到和查询账号信息<br>需要使用cookie",
"filename": "icc2022.har",
"content": "W3siY29tbWVudCI6ICLkvb/nlKhjb29raWXor7fmsYLkuKrkurrkv6Hmga8iLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiaHR0cHM6Ly93d3cuaWNjMjAyMi5jb20vYXR0ZW5kYW5jZS5waHAiLCAiaGVhZGVycyI6IFt7Im5hbWUiOiAiOmF1dGhvcml0eSIsICJ2YWx1ZSI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vbnVzLnBocFwiPuS9v+eUqDwvYT4oLispPGEgaHJlZj1cImF0dGVuZGFuY2UucGhwXCIgY2xhc3M9XCJcIj4iLCAiZnJvbSI6ICJjb250ZW50In0sIHsibmFtZSI6ICJ0YWJsZTEiLCAicmUiOiAidGQgY2xhc3M9XCJib3R0b21cIiBhbGlnbj1cImxlZnQoLispdGQgY2xhc3M9XCJib3R0b21cIiBhbGlnbj1cInJpZ2h0IiwgImZyb20iOiAiY29udGVudCJ9LCB7Im5hbWUiOiAidGFibGUyIiwgInJlIjogIui/meaYr+aCqOeahCguKynlvKDjgIIiLCAiZnJvbSI6ICJjb250ZW50In1dfX0sIHsiY29tbWVudCI6ICLlhpnml6Xlv5ciLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiYXBpOi8vdXRpbC9zdHJpbmcvcmVwbGFjZT9yPXRleHQmdD0lQzIlQTAmcD0lQzIlQTAmcz0lRTQlQkIlOEElRTYlOTclQTUlRTclQTclQUYlRTUlODglODYlRTQlQjglQkElM0ElMjB7e3RvZGF5fHVybGVuY29kZX19JUMyJUEwJUVGJUJDJTlCJUU1JTg1JUE4JUU5JTgzJUE4JUVGJUJDJTlBe3thbGx8dXJsZW5jb2RlfX0lRUYlQkMlOUIlRTQlQkYlQTElRTYlODElQUYlRUYlQkMlOUF7e3RhYmxlMnx1cmxlbmNvZGV9fSIsICJoZWFkZXJzIjogW10sICJjb29raWVzIjogW10sICJkYXRhIjogIiJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW3sicmUiOiAiMjAwIiwgImZyb20iOiAic3RhdHVzIn1dLCAiZmFpbGVkX2Fzc2VydHMiOiBbXSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJfX2xvZ19fIiwgInJlIjogIi4rIiwgImZyb20iOiAiY29udGVudCJ9XX19XQ==",
"date": "2025-01-07 10:44:43",
"version": "20250107",
"commenturl": "https://github.com/qd-today/templates/issues/831"
}
}
}