Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icc2022 评论区 #831

Open
Carnia opened this issue Jan 7, 2025 · 0 comments
Open

icc2022 评论区 #831

Carnia opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@Carnia
Copy link
Contributor

Carnia commented Jan 7, 2025

HAR 模板名称

icc2022

作者信息

好人

模板备注及说明

每日签到和查询账号信息
需要使用cookie

HAR 文件名

icc2022.har

其他信息

No response

HAR 模板内容

[
    {
        "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"
                }
            ]
        }
    }
]
@Carnia Carnia added the har label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant