-
Notifications
You must be signed in to change notification settings - Fork 300
/
PT通用签到保号.har
119 lines (119 loc) · 3.6 KB
/
PT通用签到保号.har
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[
{
"request": {
"method": "GET",
"url": "https://{{domain}}/attendance.php",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"name": ":path",
"value": "/attendance.php"
},
{
"name": "upgrade-insecure-requests",
"value": "1"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
},
{
"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.9"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "sec-fetch-mode",
"value": "navigate"
},
{
"name": "sec-fetch-user",
"value": "?1"
},
{
"name": "sec-fetch-dest",
"value": "document"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9"
},
{
"name": "cookie",
"value": "{{cookie}}"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "关闭维护",
"from": "content"
}
],
"extract_variables": [
{
"name": "recheck_cnt",
"re": "第[\\s\\S]+今日签到排名:<b>\\d+</b> / <b>\\d+</b>",
"from": "content"
},
{
"name": "traffic",
"re": "分享率[:][\\s\\S]+当前活动",
"from": "content"
}
]
}
},
{
"comment": "字符串替换",
"request": {
"method": "POST",
"url": "api://util/string/replace",
"headers": [],
"cookies": [],
"data": "r=text&p=当前活动&t=&s={{domain}}: {{traffic | striptags}} {{regex_replace(recheck_cnt | striptags, \"点击[\\s\\S]+目前\", \"\")}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"OK\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": ".*",
"from": "content"
}
]
}
}
]