Skip to content

Commit

Permalink
Add HAR: 隔壁网(新) (#640)
Browse files Browse the repository at this point in the history
Co-authored-by: RuiQui <[email protected]>
  • Loading branch information
github-actions[bot] and RuiQui authored Aug 18, 2024
1 parent d63695a commit 6d9f42a
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 0 deletions.
294 changes: 294 additions & 0 deletions new_gebi1.har
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
[
{
"comment": "判断是否填写Cookie",
"request": {
"method": "GET",
"url": "{% if not cookie %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "获取登录前formhash",
"request": {
"method": "GET",
"url": "https://www.gebi1.com/member.php?mod=logging&action=login&infloat=yes&handlekey=login&inajax=1&ajaxtarget=fwin_content_login",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "formhash",
"re": "\"formhash\".*?value=\"(.*?)\"",
"from": "content"
},
{
"name": "loginhash",
"re": "loginhash=([^\\s\"&]+)",
"from": "content"
}
]
}
},
{
"comment": "密码登录获取Cookie",
"request": {
"method": "POST",
"url": "https://www.gebi1.com/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash|urlencode}}&inajax=1",
"headers": [],
"cookies": [],
"data": "formhash={{formhash}}&referer=https%3A%2F%2Fwww.gebi1.com%2F&username={{username|urlencode}}&password={{password|urlencode}}&questionid=0&answer=",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "欢迎您回来",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"re": "username':'(.+)','usergroup",
"from": "content",
"name": "username"
},
{
"re": "uid':'(\\d+)'",
"from": "content",
"name": "uid"
}
]
}
},
{
"comment": "判断块结束",
"request": {
"method": "GET",
"url": "{% endif %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "生成时间戳",
"request": {
"method": "GET",
"url": "api://util/timestamp",
"headers": [],
"cookies": []
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": [
{
"re": "(\\d{10})",
"from": "content",
"name": "t"
}
]
}
},
{
"comment": "获取hash",
"request": {
"method": "GET",
"url": "https://www.gebi1.com/home.php?mod=spacecp&ac=credit&showcredit=1",
"headers": [],
"cookies": [
{
"name": "cookie",
"value": "{{cookie}}"
}
]
},
"rule": {
"success_asserts": [
{
"re": "个人资料",
"from": "content"
}
],
"failed_asserts": [
{
"re": "您需要先登录",
"from": "content"
}
],
"extract_variables": [
{
"re": "formhash=(\\w*)\"",
"from": "content",
"name": "hash"
}
]
}
},
{
"comment": "签到",
"request": {
"method": "POST",
"url": "https://www.gebi1.com/plugin.php?id=k_misign%3Asign&operation=qiandao&format=button&formhash={{ hash |urlencode}}",
"headers": [],
"cookies": [],
"data": "formhash={{ hash |urlencode}}&qdxq=kx",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "签到成功",
"from": "content"
},
{
"re": "今日已签",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "qd",
"re": "连续.*?([\\d.]+).*天",
"from": "content"
},
{
"name": "accumulate",
"re": "已累计签到.*?([\\d.]+).*天。",
"from": "content"
},
{
"name": "status",
"re": "签到成功",
"from": "content"
}
]
}
},
{
"comment": "签到状态判断",
"request": {
"method": "GET",
"url": "{% if status==\"签到成功\" %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=隔壁网签到:已连续签到{{qd}}天,累计签到{{accumulate}}天。"
},
"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": "{% else %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=隔壁网签到:今天已经签到咯"
},
"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": []
}
}
]
12 changes: 12 additions & 0 deletions tpls_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -3540,6 +3540,18 @@
"date": "2024-08-18 17:47:46",
"version": "20240818",
"commenturl": "https://github.com/qd-today/templates/issues/718"
},
"隔壁网(新)": {
"name": "隔壁网(新)",
"author": "stay,XuanRui",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/new_gebi1.har",
"update": false,
"comments": "username 和 password 是登录的账号密码<br>填写Cookies后无需填写账号和密码<br>https://www.gebi1.com",
"filename": "new_gebi1.har",
"content": "W3siY29tbWVudCI6ICLliKTmlq3mmK/lkKbloavlhplDb29raWUiLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAieyUgaWYgbm90IGNvb2tpZSAlfSIsICJoZWFkZXJzIjogW10sICJjb29raWVzIjogW10sICJkYXRhIjogIiJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW10sICJmYWlsZWRfYXNzZXJ0cyI6IFtdLCAiZXh0cmFjdF92YXJpYWJsZ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IHsiY29tbWVudCI6ICLliKTmlq3lnZfnu5PmnZ8iLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAieyUgZW5kaWYgJX0iLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICIifSwgInJ1bGUiOiB7InN1Y2Nlc3NfYXNzZXJ0cyI6IFtdfX1d",
"date": "2024-08-18 21:36:45",
"version": "20240818",
"commenturl": "https://github.com/qd-today/templates/issues/639"
}
}
}

0 comments on commit 6d9f42a

Please sign in to comment.