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

4KHDR 评论区 #356

Open
chen8945 opened this issue Jun 10, 2023 · 49 comments
Open

4KHDR 评论区 #356

chen8945 opened this issue Jun 10, 2023 · 49 comments
Assignees
Labels

Comments

@chen8945
Copy link
Collaborator

chen8945 commented Jun 10, 2023

HAR 模板名称

4KHDR

作者信息

chen8945

模板备注及说明

用户名 + 密码
https://4khdr.cn/

HAR 文件名

4KHDR.har

其他信息

暂无

HAR 模板内容

[{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"html_unescape=false&content=invalid"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"s","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"","request":{"method":"GET","url":"https://4khdr.cn/member.php?mod=logging&action=login&infloat=yes&handlekey=login&inajax=1&ajaxtarget=fwin_content_login","headers":[{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"},{"name":"Referer","value":"https://4khdr.cn/"}],"cookies":[],"data":"","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"formhash","re":"name=\"formhash\" value=\"(.+)\"","from":"content"},{"name":"idhash","re":"seccode_(.+)\"","from":"content"},{"name":"loginhash","re":"loginhash=(.+)\"","from":"content"}]}},{"comment":"While 循环开始","request":{"method":"GET","url":"{% while int(loop_index0) < 10 and s == \"invalid\" %}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"","request":{"method":"GET","url":"https://www.4khdr.cn/misc.php?mod=seccode&action=update&idhash={{idhash}}&{{random(0,1,16)}}=&modid=member%3A%3Alogging","headers":[{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"},{"name":"Referer","value":"https://4khdr.cn/member.php?mod=logging&action=login"}],"cookies":[],"data":"","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"sec","re":"updateseccode.*src=\"(.+?)\"","from":"content"}]}},{"comment":"","request":{"method":"GET","url":"https://4khdr.cn/{{sec}}","headers":[{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"},{"name":"Referer","value":"https://4khdr.cn/member.php?mod=logging&action=login"}],"cookies":[],"data":"","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"sec","re":".*","from":"content"}]}},{"comment":"OCR识别","request":{"method":"POST","url":"api://util/dddd/ocr","headers":[{"name":"Content-Type","value":"application/json"}],"cookies":[],"data":"{\"img\":\"{{sec}}\",\"imgurl\":\"\",\"old\":\"False\",\"extra_onnx_name\":\"\"}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"OK\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"seccodeverify","re":"\"Result\": \"(.*)\"","from":"content"}]}},{"comment":"","request":{"method":"GET","url":"https://4khdr.cn/misc.php?mod=seccode&action=check&inajax=1&modid=member%3A%3Alogging&idhash={{idhash}}&secverify={{seccodeverify}}","headers":[{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"},{"name":"Referer","value":"https://4khdr.cn/"}],"cookies":[],"data":"","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"s","re":"succeed","from":"content"}]}},{"comment":"While 循环结束","request":{"method":"GET","url":"{% endwhile %}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[]}},{"comment":"","request":{"method":"POST","url":"https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1","headers":[{"name":"Origin","value":"https://4khdr.cn"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"},{"name":"Referer","value":"https://4khdr.cn/member.php?mod=logging&action=login"}],"cookies":[],"data":"formhash={{formhash}}&Referer=https%3A%2F%2F4khdr.cn%2F&loginfield=username&username={{username|urlencode}}&password={{password|urlencode}}&questionid=0&answer=&seccodehash={{idhash}}&seccodemodid=member%3A%3Alogging&seccodeverify={{seccodeverify}}&cookietime=2592000","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"您当前的访问请求当中含有非法字符,已经被系统拒绝","from":"content"},{"re":"登录失败","from":"content"},{"re":"抱歉,验证码填写错误","from":"content"},{"re":"抱歉,密码空或包含非法字符","from":"content"}],"extract_variables":[{"name":"uid","re":"'uid':'(\\d+)'","from":"content"}]}},{"comment":"","request":{"method":"GET","url":"https://4khdr.cn/space-uid-{{uid}}.html","headers":[{"name":"Referer","value":"https://4khdr.cn/"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4636.4 Safari/537.36"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"立即注册","from":"content"},{"re":"请先登录后才能继续浏览","from":"content"}],"extract_variables":[{"name":"yhz","re":"target=\"_blank\">(.*)</a></span>","from":"content"},{"name":"sj","re":"tip=\"(.*?)\">","from":"content"},{"name":"jf","re":"积分</em>(\\d+)","from":"content"},{"name":"ww","re":"威望</em>(\\d+)","from":"content"},{"name":"jq","re":"金钱</em>(\\d+)","from":"content"},{"name":"gx","re":"贡献</em>(\\d+)","from":"content"},{"name":"name","re":"title=\"访问我的空间\">(.+?)<","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content=用户名:{{name}}\\r\\n 金钱:{{jq}},威望:{{ww}},贡献:{{gx}}\\r\\n 用户组:{{yhz}},{{sj}}"},"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 Jun 10, 2023
@chen8945 chen8945 self-assigned this Jun 10, 2023
@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 10, 2023

其中有个loginhash参数是否是变化的?

@chen8945
Copy link
Collaborator Author

其中有个loginhash参数是否是变化的?

是有变化的,这个是我疏忽了,但并不会影响登录

@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 10, 2023

是有变化的,这个是我疏忽了,但并不会影响登录

会不会涉及到个人信息的标记, 如果有相关顾虑的话可以考虑修改一下

@chen8945
Copy link
Collaborator Author

会不会涉及到个人信息的标记, 如果有相关顾虑的话可以考虑修改一下

这个值是在未登录的情况下生成的,应该不会涉及到个人信息,待会我修改一下进行更新

@swswlx
Copy link

swswlx commented Jun 12, 2023

2023-06-12 08:44:36
日志:Failed at 5/10 request,
Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts,
Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

@chen8945
Copy link
Collaborator Author

2023-06-12 08:44:36 日志:Failed at 5/10 request, Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts, Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

重试次数设置多一点,暂时还没想好合适的循环检测逻辑

@swswlx
Copy link

swswlx commented Jun 13, 2023

设置的最高8次,每天8次重试均报错。

2023-06-12 08:44:36 日志:Failed at 5/10 request, Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts, Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

重试次数设置多一点,暂时还没想好合适的循环检测逻辑

@chen8945
Copy link
Collaborator Author

设置的最高8次,每天8次重试均报错。

2023-06-12 08:44:36 日志:Failed at 5/10 request, Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts, Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

重试次数设置多一点,暂时还没想好合适的循环检测逻辑

按理来说不应该出现这么多次失败
image
你先检查一下你是否是不带 OCRlite 版本,然后点开模板的编辑按钮
image
依次点击前四次请求,并测试
image
image
然后检查第三个请求能否正确返回验证码
image
第四次请求能否正确识别验证码
image

@swswlx
Copy link

swswlx commented Jun 13, 2023

第三次请求没有返回验证码,只是提示运行成功
image
image
运行第四个提示非法字符
abc00a9ccdd98fad723c02b6615ecd1
129ca1cc3f71aec67c1f37fa5650486

@chen8945
Copy link
Collaborator Author

第三次请求没有返回验证码,只是提示运行成功 image image

你按照我图上的方法,按顺序从第一个开始点击请求进去测试,别用这个勾选测试
image

@swswlx
Copy link

swswlx commented Jun 13, 2023

第三次请求没有返回验证码,只是提示运行成功 image image

你按照我图上的方法,按顺序从第一个开始点击请求进去测试,别用这个勾选测试 image

第三步可以返回验证码,第四步识别不出来
image

@chen8945
Copy link
Collaborator Author

第三步可以返回验证码,第四步识别不出来 image

看看你的镜像是不是 lite 版吧,这个错误我记得是不带 OCRlite 版会报
image

@swswlx
Copy link

swswlx commented Jun 13, 2023

看看你的镜像是不是 lite 版吧,这个错误我记得是不带 OCRlite 版会报 image
感谢大佬,果然是拉去的镜像不对,换了镜像一次成功,感谢!

@hecarli555
Copy link

这两天首次自动执行签到的时候总是提示“Failed at 5/10 request,
Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts,
Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash=LiW2c&inajax=1”,后面手动执行就又成功了,用的是latest版了,这是什么情况呢?

@chen8945
Copy link
Collaborator Author

这两天首次自动执行签到的时候总是提示“Failed at 5/10 request, Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts, Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash=LiW2c&inajax=1”,后面手动执行就又成功了,用的是latest版了,这是什么情况呢?

验证码识别并不是百分百正确,可以增加重试次数进行多次重试,还有就是你在公共模板界面使用一下重建缓存,当前你使用的模板并不是最新的

@hecarli555
Copy link

这两天首次自动执行签到的时候总是提示“Failed at 5/10 request, Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts, Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash=LiW2c&inajax=1”,后面手动执行就又成功了,用的是latest版了,这是什么情况呢?

验证码识别并不是百分百正确,可以增加重试次数进行多次重试,还有就是你在公共模板界面使用一下重建缓存,当前你使用的模板并不是最新的

我看模板是6月10日的,我是6月11日订阅的模板,是最新的了吧?

@chen8945
Copy link
Collaborator Author

我看模板是6月10日的,我是6月11日订阅的模板,是最新的了吧?

那天更新了两个版本,如果你在第二个版本更新之前更新过仓库,就会出现这种问题,得重建缓存,你给出的报错里正好包含了更新前的数据,所以能看出来不是最新的

@hecarli555
Copy link

我看模板是6月10日的,我是6月11日订阅的模板,是最新的了吧?

那天更新了两个版本,如果你在第二个版本更新之前更新过仓库,就会出现这种问题,得重建缓存,你给出的报错里正好包含了更新前的数据,所以能看出来不是最新的

感谢大佬解惑,已经重建缓存重新订阅了

@gongxianzhang
Copy link

麻烦问下在哪添加账户密码怎么加都是404错误

@chen8945
Copy link
Collaborator Author

麻烦问下在哪添加账户密码怎么加都是404错误

image
在这两个位置添加账号密码
报错可以将报错信息发出来看看
模板我目前可以正常运行,可以尝试更换IP试试,看看是不是被屏蔽了

@gongxianzhang
Copy link

Failed at 4/10 request,
Fail assert: {"re": ""状态": "OK"", "from": "content"} from success_asserts,
Response Error : HTTP 404: Not Found,
Request URL: api://util/dddd/ocr

@chen8945
Copy link
Collaborator Author

Failed at 4/10 request, Fail assert: {"re": ""状态": "OK"", "from": "content"} from success_asserts, Response Error : HTTP 404: Not Found, Request URL: api://util/dddd/ocr

把你的QD框架更新到最新版

@gongxianzhang
Copy link

在 4/10 请求处失败,失败断言:{“re”: “”状态“: ”OK“”, “from”: “content”} from success_asserts,响应错误:HTTP 404:未找到,请求 URL:api://util/dddd/ocr

把你的QD框架更新到最新版

是最近的QD 404: Not Found 第四个

@gongxianzhang
Copy link

微信图片_20230712035442
微信图片_20230712035507

@chen8945
Copy link
Collaborator Author

在 4/10 请求处失败,失败断言:{“re”: “”状态“: ”OK“”, “from”: “content”} from success_asserts,响应错误:HTTP 404:未找到,请求 URL:api://util/dddd/ocr

把你的QD框架更新到最新版

是最近的QD 404: Not Found 第四个

截图首页顶部标题看看你的框架版本,最新版不应该会出现这种情况

@gongxianzhang
Copy link

Screenshot_20230712_160643_Chrome

@gongxianzhang
Copy link

gongxianzhang commented Jul 12, 2023 via email

@chen8945
Copy link
Collaborator Author

Screenshot_20230712_160643_Chrome

更新下版本,你这都是两年前的上古版本了,你看标题上那个20211228
看看你的镜像是不是qdtoday/qd:latest
如果不是,请更换为这个
如果是,请检查重新拉取最新镜像,如无法拉取最新镜像,请指定版本拉取或者更换镜像源

@gongxianzhang
Copy link

gongxianzhang commented Jul 12, 2023 via email

@gongxianzhang
Copy link

Screenshot_20230712_204352_Sunlogin Remote Control
Screenshot_20230712_204342_Sunlogin Remote Control

@chen8945
Copy link
Collaborator Author

Screenshot_20230712_204352_Sunlogin Remote Control Screenshot_20230712_204342_Sunlogin Remote Control

你倒是填账号密码

@gongxianzhang
Copy link

Screenshot_20230712_204352_Sunlogin Remote Control Screenshot_20230712_204342_Sunlogin Remote Control

你倒是填账号密码

我填了啊,我订阅下载导入的时候填的啊

@chen8945
Copy link
Collaborator Author

我填了啊,我订阅下载导入的时候填的啊

image
image
image
image

@gongxianzhang
Copy link

非常感谢成功了,是我太笨了

@llemllen
Copy link

image

之前都能签到,突然之间不能签到了,这是账号被锁了么,去官网手动签到也不行

@Misuzu7
Copy link

Misuzu7 commented Jul 24, 2023

图像

之前都能签到,突然之间不能签到了,这是账号被锁了么,去官网手动签到也不行

巧了,我也出现了

@swswlx
Copy link

swswlx commented Jul 24, 2023

图像
之前都能签到,突然之间不能签到了,这是账号被锁了么,去官网手动签到也不行

巧了,我也出现了

我今天也出现了

@hecarli555
Copy link

原来大家都出现一样问题………
2023-07-24 10:34:03
日志:Failed at 7/10 request,
Fail assert: {"re": "您所在用户组不允许使用", "from": "content"} from failed_asserts,
Request URL: https://4khdr.cn/plugin.php?id=k_misign%3Asign&operation=qiandao&formhash={{formhash|urlencode}}&format=empty&inajax=1&ajaxtarget=

@wangzhenyu1260
Copy link

+1

@chen8945
Copy link
Collaborator Author

暂时不清楚原因,我凌晨的签到倒是成功了,刚刚去试了一下出现了一样的情况,先等明天再看看还会不会这样吧

@hecarli555
Copy link

hecarli555 commented Jul 24, 2023

暂时不清楚原因,我凌晨的签到倒是成功了,刚刚去试了一下出现了一样的情况,先等明天再看看还会不会这样吧

恢复正常了。。。原来是站点原因。。。

@TianSaiVIP
Copy link

大佬能不能做一个4ksj.com的自动签到模板,前几天网站加入了一个滑块验证,以前的模板失效了。
362fa8538932ff637391e5c11fc9d2d

@hecarli555
Copy link

大佬能不能做一个4ksj.com的自动签到模板,前几天网站加入了一个滑块验证,以前的模板失效了。 362fa8538932ff637391e5c11fc9d2d

我也才发现确实没签到上了。。。4ksj

@chen8945
Copy link
Collaborator Author

大佬能不能做一个4ksj.com的自动签到模板,前几天网站加入了一个滑块验证,以前的模板失效了。 362fa8538932ff637391e5c11fc9d2d

求模板区 #171

@adslpal
Copy link

adslpal commented Aug 17, 2023

Failed at 7/10 request,
Fail assert: {"re": "您当前的访问请求当中含有非法字符,已经被系统拒绝", "from": "content"} from failed_asserts,
Response Error : HTTP 503: Service Unavailable,
Request URL: https://4khdr.cn/plugin.php?id=k_misign%3Asign&operation=qiandao&formhash={{formhash|urlencode}}&format=empty&inajax=1&ajaxtarget=

@hecarli555
Copy link

感觉这几个站都是一伙的,4khdr也沦陷了
Failed at 7/10 request,
Fail assert: {"re": "您当前的访问请求当中含有非法字符,已经被系统拒绝", "from": "content"} from failed_asserts,
Response Error : HTTP 503: Service Unavailable,
Request URL: https://4khdr.cn/plugin.php?id=k_misign%3Asign&operation=qiandao&formhash={{formhash|urlencode}}&format=empty&inajax=1&ajaxtarget=

@chen8945
Copy link
Collaborator Author

@adslpal @hecarli555 已更新

@Week888
Copy link

Week888 commented Sep 15, 2023

Failed at 5/10 request,
Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts,
Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

好像不能用了?

@chen8945
Copy link
Collaborator Author

Failed at 5/10 request,
Fail assert: {"re": "抱歉,验证码填写错误", "from": "content"} from failed_asserts,
Request URL: https://4khdr.cn/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash={{loginhash}}&inajax=1

好像不能用了?

能用,只是运气不好验证码连续识别错误了,刚刚更新了一版,增加了验证码错误重试

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