qd-today / templates

基于开源新版 QD 框架站发布的公共har模板库,仅供示例
1.05k stars 293 forks source link

ns中文网 评论区 #718

Open loveyanglove opened 2 months ago

loveyanglove commented 2 months ago

HAR 模板名称

ns中文网

作者信息

loveyanglove

模板备注及说明

账号密码 日志显示

HAR 文件名

ns中文网.har

其他信息

No response

HAR 模板内容

[{"comment":"账号密码登录","request":{"method":"POST","url":"https://www.ns211.com/wp-admin/admin-ajax.php","headers":[{"name":"Host","value":"www.ns211.com"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"53"},{"name":"sec-ch-ua","value":"\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""},{"name":"Accept","value":"*/*"},{"name":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"Origin","value":"https://www.ns211.com"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"Sec-Fetch-Mode","value":"cors"},{"name":"Sec-Fetch-Dest","value":"empty"},{"name":"Referer","value":"https://www.ns211.com/"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9"}],"cookies":[],"data":"action=user_login&username={{username|urlencode}}&password={{password|urlencode}}","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"\\u7528\\u6237\\u540d\\u6216\\u5bc6\\u7801\\u9519\\u8bef","from":"content"}],"extract_variables":[{"name":"dlzt","re":"\"msg\":\"(.*?)\"","from":"content"}]}},{"comment":"签到","request":{"method":"POST","url":"https://www.ns211.com/wp-admin/admin-ajax.php","headers":[{"name":"Host","value":"www.ns211.com"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"19"},{"name":"sec-ch-ua","value":"\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""},{"name":"Accept","value":"*/*"},{"name":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"Origin","value":"https://www.ns211.com"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"Sec-Fetch-Mode","value":"cors"},{"name":"Sec-Fetch-Dest","value":"empty"},{"name":"Referer","value":"https://www.ns211.com/"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9"}],"cookies":[],"data":"action=user_qiandao","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"\\u8bf7\\u767b\\u5f55\\u540e\\u7b7e\\u5230","from":"content"}],"extract_variables":[{"name":"msg","re":"\"msg\":\"(.*?)\"","from":"content"}]}},{"comment":"用户中心","request":{"method":"GET","url":"https://www.ns211.com/user","headers":[{"name":"Host","value":"www.ns211.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"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/122.0.6261.95 Safari/537.36"},{"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":"Sec-Fetch-Site","value":"same-origin"},{"name":"Sec-Fetch-Mode","value":"navigate"},{"name":"Sec-Fetch-User","value":"?1"},{"name":"Sec-Fetch-Dest","value":"document"},{"name":"Referer","value":"https://www.ns211.com/"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"nichen","re":"<a class=\"user-names\" href=\"https://www.ns211.com/user\">(.*?)</a>","from":"content"},{"name":"dqye","re":"<p>当前余额</p>[\\s|\\S]*?<h3>(.*?)</h3>","from":"content"},{"name":"huiyuan","re":"<p><span class=\"label label-default\"><i class=\"fa fa-user\"></i>(.*?)</span>","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"html_unescape=false&content=登录状态:【{{dlzt}}】,签到状态:【{{msg}}】\\r\\n昵称:【{{nichen}}】,会员:【{{huiyuan}}】,当前余额:【{{dqye}}】"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
icedog111 commented 2 months ago

不能使用, 2024-08-27 09:02:10 日志:Failed at 1/4 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 400: Bad Request, Request URL: https://www.ns211.com/wp-admin/admin-ajax.php

loveyanglove commented 2 months ago

不能使用, 2024-08-27 09:02:10 日志:Failed at 1/4 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 400: Bad Request, Request URL: https://www.ns211.com/wp-admin/admin-ajax.php

可以使用,正常签到

benladen commented 2 months ago

我把第一条的Request Payload改为自己的xxx和ppp,然后保存,测试下:action=user_login&username=xxx&password=ppp

lieqijun commented 2 months ago

不能使用, 2024-08-27 09:02:10 日志:1/4 请求失败,失败断言:{"re": "200", "from": "status"} 来自 success_asserts,响应错误:HTTP 400:错误请求,请求 URL:https://www.ns211.com/wp-admin/admin-ajax.php

我们正常签到

我也是这个错误,能不能使用cookie登录签到

loveyanglove commented 2 months ago

不能使用, 2024-08-27 09:02:10 日志:1/4 请求失败,失败断言:{"re": "200", "from": "status"} 来自 success_asserts,响应错误:HTTP 400:错误请求,请求 URL:https://www.ns211.com/wp-admin/admin-ajax.php

我们正常签到

我也是这个错误,能不能使用cookie登录签到

不要用邮箱登录,用ID登录。

lieqijun commented 2 months ago

不能使用, 2024-08-27 09:02:10 日志:1/4 请求失败,失败断言:{"re": "200", "from": "status"} 来自 success_asserts,响应错误:HTTP 400:错误请求,请求 URL:https://www.ns211.com/wp-admin/admin-ajax.php

我们正常签到

我也是这个错误,能不能使用cookie登录签到

不要用邮箱登录,用ID登录。

我就是用的id登录

benladen commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

lieqijun commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

benladen commented 2 months ago

那不清楚了,我这这样没问题

loveyanglove commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

用cookie 试试

Melody-Test commented 2 months ago

用上面的方法改了也签不了。。

lieqijun commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

用cookie 试试

在哪里使用cookie?

loveyanglove commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

用cookie 试试

在哪里使用cookie?

https://wwqk.lanzouq.com/iRiAT28r44ta 下载这个试试

Melody-Test commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

用cookie 试试

在哪里使用cookie?

https://wwqk.lanzouq.com/iRiAT28r44ta 下载这个试试

大佬牛逼 这个可以用 亲测

lieqijun commented 2 months ago

把第一条的Request Payload里的“action=user_login&username={{username|urlencode}}&password={{password|urlencode}}”改为“action=user_login&username=xxx&password=ppp”,替换自己的账号密码,然后保存,测试。

最下方的Request Payload是吧?改成自己的账户密码测试了,也不行

用cookie 试试

在哪里使用cookie?

https://wwqk.lanzouq.com/iRiAT28r44ta 下载这个试试

可以了,感谢

NOwin111 commented 3 weeks ago

cookie过期的挺快的

1617624 commented 2 weeks ago

cookie过期的挺快的

是的,我这里也是这个情况2天就失效了