Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2DFan 评论区 #496

Open
chen8945 opened this issue Dec 19, 2023 · 13 comments
Open

2DFan 评论区 #496

chen8945 opened this issue Dec 19, 2023 · 13 comments
Assignees
Labels

Comments

@chen8945
Copy link
Collaborator

chen8945 commented Dec 19, 2023

HAR 模板名称

2DFan

作者信息

chen8945

模板备注及说明

Cookie
domain:域名(示例 2dfan.org)
https://2dfan.org/

HAR 文件名

2DFan.har

其他信息

暂无

HAR 模板内容

[{"request":{"method":"GET","url":"https://{{domain|default(\"2dfan.org\")}}/","headers":[{"name":"cookie","value":"{{cookie}}"},{"name":"referer","value":"https://{{domain}}/"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"<a href=\"/users/not_authenticated\">登录</a>","from":"content"},{"re":"<a href=\"/users/new\">注册</a>","from":"content"}],"extract_variables":[{"name":"recheckin","re":"<a href=\"(.+)\">签到</a>","from":"content"},{"name":"panel","re":"<a href=\"(.+)\">控制面板</a>","from":"content"}]}},{"request":{"method":"GET","url":"https://{{domain}}{{recheckin}}","headers":[{"name":"referer","value":"https://{{domain}}/"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"<a href=\"/users/not_authenticated\">登录</a>","from":"content"},{"re":"<a href=\"/users/new\">注册</a>","from":"content"}],"extract_variables":[{"name":"token","re":"name=\"csrf-token\" content=\"(.+)\"","from":"content"}]}},{"request":{"method":"POST","url":"https://{{domain}}/checkins","headers":[{"name":"origin","value":"https://{{domain}}"},{"name":"referer","value":"https://{{domain}}{{recheckin}}"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"},{"name":"x-csrf-token","value":"{{token}}"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"checkins_count","re":"\"checkins_count\":(\\d+)","from":"content"},{"name":"serial_checkins","re":"\"serial_checkins\":(\\d+)","from":"content"}]}},{"comment":"","request":{"method":"GET","url":"https://{{domain}}{{panel}}","headers":[{"name":"referer","value":"https://{{domain}}/"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"<a href=\"/users/not_authenticated\">登录</a>","from":"content"},{"re":"<a href=\"/users/new\">注册</a>","from":"content"}],"extract_variables":[{"name":"name","re":"<i class=\"icon-user\"></i> (.+) <i class=\"caret\"></i>","from":"content"},{"name":"jf","re":"<span class=\"muted\">积分:</span>.+</li>","from":"content"},{"name":"sw","re":"<span class=\"muted\">声望:</span>.+</li>","from":"content"},{"name":"yqd","re":"<span class=\"muted\">已签到:</span>.+</li>","from":"content"},{"name":"lxqd","re":"<span class=\"muted\">连续签到:</span>.+</li>","from":"content"},{"name":"qdpm","re":"<span class=\"muted\">签到排名:</span>.+</li>","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"html_unescape=false&content=用户名:{{name}}\\r\\n {{jf|striptags}},{{sw|striptags}}\\r\\n {{yqd|striptags}},{{lxqd|striptags}},{{qdpm|striptags}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
@chen8945 chen8945 added the har label Dec 19, 2023
@chen8945 chen8945 self-assigned this Dec 19, 2023
@Sizukaze
Copy link

大佬这个用不了
会报错
Failed at 1/5 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 599: Could not resolve host: https,
Request URL: https:///{{domain}}/

@chen8945
Copy link
Collaborator Author

大佬这个用不了 会报错 Failed at 1/5 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Could not resolve host: https, Request URL: https:///{{domain}}/

image
答应我,下次记得看示例,示例里面并没有填写 https://

@Sizukaze
Copy link

大佬这个用不了 会报错 Failed at 1/5 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Could not resolve host: https, Request URL: https:///{{domain}}/

image 答应我,下次记得看示例,示例里面并没有填写 https://

好吧,对不起,我理解错了。
我以为示例是域名为2dfan.ofg的时候,要按照https://2dfan.org/来填写。。。

@17huiwei
Copy link

地址改了,ddfan.org,但是就算改成这个,重新登陆以后获取CK,还是提示
Failed at 1/5 request,
Fail assert: {"re": "<a href="/users/not_authenticated">登录", "from": "content"} from failed_asserts,
Request URL: https://{{domain|default("2dfan.org")}}/

@chen8945
Copy link
Collaborator Author

地址改了,ddfan.org,但是就算改成这个,重新登陆以后获取CK,还是提示 Failed at 1/5 request, Fail assert: {"re": "登录", "from": "content"} from failed_asserts, Request URL: https://{{domain|default("2dfan.org")}}/

你编辑模版,把第一个请求里的 |default("2dfan.org") 删掉试试

@17huiwei
Copy link

地址改了,ddfan.org,但是就算改成这个,重新登陆以后获取CK,还是提示 Failed at 1/5 request, Fail assert: {"re": "登录", "from": "content"} from failed_asserts, Request URL: https://{{domain|default("2dfan.org")}}/

你编辑模版,把第一个请求里的 |default("2dfan.org") 删掉试试

完美解决。

@Streamer-stars
Copy link

image
大佬,签到改了,今天试过已经不行了。
Failed at 3/5 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 406: Not Acceptable,
Request URL: https://{{domain}}/checkins

@chen8945
Copy link
Collaborator Author

image 大佬,签到改了,今天试过已经不行了。 Failed at 3/5 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 406: Not Acceptable, Request URL: https://{{domain}}/checkins

大概去看了下,目前的验证方式框架似乎不适合操作,有空我再细看一下

@fengziX
Copy link

fengziX commented Aug 6, 2024

加了人机验证了,sad

@christaikobo
Copy link

christaikobo commented Sep 16, 2024

现在又改成CF验证了
有人愿意写个用flaresolverr的模板么, 感谢啦!

@Magic989
Copy link

现在没有那种图片的人机验证了,大佬看看能不能操作一下😘

@mhdy2233
Copy link

mhdy2233 commented Nov 1, 2024

大佬还能修好吗

@chen8945
Copy link
Collaborator Author

chen8945 commented Nov 2, 2024

大佬还能修好吗

看了下,应该修不了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants