-
Notifications
You must be signed in to change notification settings - Fork 294
/
PT通用过CF签到保号.har
69 lines (69 loc) · 2.44 KB
/
PT通用过CF签到保号.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
[
{
"comment": "适用预定义模板 JSON",
"request": {
"method": "POST",
"url": "{{flaresolverr_url}}",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"cookies": [],
"data": "{\n \"cmd\": \"request.get\",\n \"url\": \"https://{{domain}}/attendance.php\",\n \"cookies\": [\n {\n \"name\": \"c_secure_login\",\n \"value\": \"{{c_secure_login}}\",\n \"domain\": \"{{domain}}\"\n },\n {\n \"name\": \"c_secure_pass\",\n \"value\": \"{{c_secure_pass}}\",\n \"domain\": \"{{domain}}\"\n },\n {\n \"name\": \"c_secure_uid\",\n \"value\": \"{{c_secure_uid}}\",\n \"domain\": \"{{domain}}\"\n }\n ],\n \"maxTimeout\": 120000\n}",
"mimeType": "application/json"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "你需要启用cookies才能登录或切换语言",
"from": "content"
}
],
"extract_variables": [
{
"name": "traffic",
"re": "\\\\u4e0a\\\\u4f20\\\\u91cf.*\\\\u5f53\\\\u524d\\\\u6d3b\\\\u52a8",
"from": "content"
}
]
}
},
{
"comment": "通知",
"request": {
"method": "POST",
"url": "api://util/string/replace",
"headers": [],
"cookies": [],
"data": "r=text&p=当前活动&t=&s={{ unicode(traffic) | striptags }}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"OK\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": ".*",
"from": "content"
}
]
}
}
]