templates/LemonHDLottery.har
github-actions[bot] 0d8f23b23e
Add HAR: 柠檬HD神游 (#811)
Co-authored-by: RuiQui <RuiQui@users.noreply.github.com>
2024-12-01 23:16:25 +08:00

312 lines
9.3 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"comment": "开始神游",
"request": {
"method": "POST",
"url": "https:///{{domain}}/lottery.php",
"headers": [
{
"name": ":authority",
"value": "{{domain}}"
},
{
"name": ":method",
"value": "POST"
},
{
"name": ":path",
"value": "/lottery.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"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9"
},
{
"name": "cache-control",
"value": "max-age=0"
},
{
"name": "content-length",
"value": "6"
},
{
"name": "content-type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "cookie",
"value": "{{cookie}}"
},
{
"name": "origin",
"value": "https://{{domain}}"
},
{
"name": "referer",
"value": "https://{{domain}}/lottery.php"
},
{
"name": "sec-ch-ua",
"value": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?1"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Android\""
},
{
"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": "upgrade-insecure-requests",
"value": "1"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36"
}
],
"cookies": [],
"data": "type=0",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "ERROR",
"re": "<td class=\"text\">(.*?)</td>",
"from": "content"
}
]
}
},
{
"comment": "判断是否有错误",
"request": {
"method": "GET",
"url": "{% if ERROR %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [
{
"re": "undefined",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=柠檬HD神游失败{{ERROR}}"
},
"rule": {
"success_asserts": [],
"failed_asserts": [
{
"re": "请求太频繁",
"from": "content"
}
],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
},
{
"comment": "判断条件不成立",
"request": {
"method": "GET",
"url": "{% else %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "获取神游结果",
"request": {
"method": "GET",
"url": "https://{{domain}}/lottery.php",
"headers": [
{
"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-language",
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
},
{
"name": "cookie",
"value": "{{cookie}}"
},
{
"name": "priority",
"value": "u=0, i"
},
{
"name": "referer",
"value": "https://{{domain}}/lottery.php?"
},
{
"name": "sec-ch-ua",
"value": "\"Microsoft Edge\";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": "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 Edg/131.0.0.0"
}
],
"cookies": []
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": [
{
"name": "result",
"re": "<\\/div>\\s*(.*?)\\s*<\\/h4>",
"from": "content"
},
{
"name": "attempts",
"re": "这是您今天第.*?([\\d.]+).*次神游",
"from": "content"
},
{
"name": "false_result",
"re": "您本次什么都没有得到!",
"from": "content"
},
{
"name": "test",
"re": "恭喜.*?<font color=.*?>\\s*(.*?)\\s*<\\/font>",
"from": "content"
}
]
}
},
{
"comment": "",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=柠檬HD神游神游{{attempts}}次,{{result}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
},
{
"comment": "判断块结束",
"request": {
"method": "GET",
"url": "{% endif %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
}
]