Skip to content

Commit

Permalink
Add HAR: locyanfrp (#417)
Browse files Browse the repository at this point in the history
Co-authored-by: sunnywangzi <[email protected]>
  • Loading branch information
github-actions[bot] and sunnywangzi authored Aug 23, 2023
1 parent d369e92 commit ef212f8
Show file tree
Hide file tree
Showing 2 changed files with 254 additions and 0 deletions.
242 changes: 242 additions & 0 deletions locyanfrp.har
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
[
{
"comment": "登入",
"request": {
"method": "GET",
"url": "https://api.locyanfrp.cn/User/DoLogin?username={{username|urlencode}}&password={{password|urlencode}}",
"headers": [
{
"name": ":authority",
"value": "api.locyanfrp.cn"
},
{
"name": ":method",
"value": "GET"
},
{
"name": ":path",
"value": "/User/DoLogin?username={{username|urlencode}}&password={{password|urlencode}}"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br"
},
{
"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": "dnt",
"value": "1"
},
{
"name": "origin",
"value": "https://preview.locyanfrp.cn"
},
{
"name": "referer",
"value": "https://preview.locyanfrp.cn/"
},
{
"name": "sec-ch-ua",
"value": "\"Not/A)Brand\";v=\"99\", \"Microsoft Edge\";v=\"115\", \"Chromium\";v=\"115\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-site"
},
{
"name": "sec-gpc",
"value": "1"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "登录成功",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "token",
"re": "\"token\":\"(.+?)\",",
"from": "content"
}
]
}
},
{
"comment": "签到",
"request": {
"method": "POST",
"url": "https://api.locyanfrp.cn/User/DoSign",
"headers": [
{
"name": ":authority",
"value": "api.locyanfrp.cn"
},
{
"name": ":method",
"value": "POST"
},
{
"name": ":path",
"value": "/User/DoSign"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br"
},
{
"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": "authorization",
"value": "Bearer ef3e3ce02f10158056bc548c2d7651e4"
},
{
"name": "content-type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "origin",
"value": "https://preview.locyanfrp.cn"
},
{
"name": "referer",
"value": "https://preview.locyanfrp.cn/"
},
{
"name": "sec-ch-ua",
"value": "\"Not/A)Brand\";v=\"99\", \"Microsoft Edge\";v=\"115\", \"Chromium\";v=\"115\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-site"
},
{
"name": "sec-gpc",
"value": "1"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203"
}
],
"cookies": [],
"data": "token={{token|urlencode}}",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "message",
"re": "\"message\":\"(.+?)\"",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "content={{message}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]
12 changes: 12 additions & 0 deletions tpls_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -2700,6 +2700,18 @@
"date": "2023-08-12 11:51:43",
"version": "20230812",
"commenturl": "https://github.com/qd-today/templates/issues/412"
},
"locyanfrp": {
"name": "locyanfrp",
"author": "sunnywangzi",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/locyanfrp.har",
"update": false,
"comments": "username:用户名/邮箱<br>password:密码<br>https://www.locyanfrp.cn/",
"filename": "locyanfrp.har",
"content": "W3siY29tbWVudCI6ICLnmbvlhaUiLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiaHR0cHM6Ly9hcGkubG9jeWFuZnJwLmNuL1VzZXIvRG9Mb2dpbj91c2VybmFtZT17e3VzZXJuYW1lfHVybGVuY29kZX19JnBhc3N3b3JkPXt7cGFzc3dvcmR8dXJsZW5jb2RlfX0iLCAiaGVhZGVycyI6IFt7Im5hbWUiOiAiOmF1dGhvcml0eSIsICJ2YWx1ZSI6ICJhcGkubG9jeWFuZnJwLmNuIn0sIHsibmFtZSI6ICI6bWV0aG9kIiwgInZhbHVlIjogIkdFVCJ9LCB7Im5hbWUiOiAiOnBhdGgiLCAidmFsdWUiOiAiL1VzZXIvRG9Mb2dpbj91c2VybmFtZT17e3VzZXJuYW1lfHVybGVuY29kZX19JnBhc3N3b3JkPXt7cGFzc3dvcmR8dXJsZW5jb2RlfX0ifSwgeyJuYW1lIjogIjpzY2hlbWUiLCAidmFsdWUiOiAiaHR0cHMifSwgeyJuYW1lIjogImFjY2VwdCIsICJ2YWx1ZSI6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ZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExNS4wLjAuMCBTYWZhcmkvNTM3LjM2IEVkZy8xMTUuMC4xOTAxLjIwMyJ9XSwgImNvb2tpZXMiOiBbXSwgImRhdGEiOiAidG9rZW49e3t0b2tlbnx1cmxlbmNvZGV9fSIsICJtaW1lVHlwZSI6ICJhcHBsaWNhdGlvbi94LXd3dy1mb3JtLXVybGVuY29kZWQifSwgInJ1bGUiOiB7InN1Y2Nlc3NfYXNzZXJ0cyI6IFt7InJlIjogIjIwMCIsICJmcm9tIjogInN0YXR1cyJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAibWVzc2FnZSIsICJyZSI6ICJcIm1lc3NhZ2VcIjpcIiguKz8pXCIiLCAiZnJvbSI6ICJjb250ZW50In1dfX0sIHsiY29tbWVudCI6ICJVbmljb2Rl6L2s5o2iIiwgInJlcXVlc3QiOiB7Im1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICJhcGk6Ly91dGlsL3VuaWNvZGUiLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJjb250ZW50PXt7bWVzc2FnZX19In0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbeyJyZSI6ICIyMDAiLCAiZnJvbSI6ICJzdGF0dXMifSwgeyJyZSI6ICJcIueKtuaAgVwiOiBcIjIwMFwiIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICJcIui9rOaNouWQjlwiOiBcIiguKilcIiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=",
"date": "2023-08-13 17:27:12",
"version": "20230813",
"commenturl": "https://github.com/qd-today/templates/issues/416"
}
}
}

0 comments on commit ef212f8

Please sign in to comment.