Open github-h opened 1 year ago
Failed at 2/7 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://bbs.kfpromax.com/index.php
账号密码正确
账号密码正确
不太清楚 你可以手动进入模板测试 看登录请求是否正常
问题可能找到了.......用户名不能中文
问题可能找到了.......用户名不能中文
username原来还能是中文嘛?
.............我以前注册就是中文的用户名
.............我以前注册就是中文的用户名
笑死 如果还想保留中文的话 可以用户名的变量替换一下
将 {{username}}
改为 {{username|urlencode}}
没经过测试 但应该是可以的
{{username|urlencode}}也没用了,我现在是抓包然后用{{username}} 而且我卡这里了= = Failed at 4/7 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://bbs.kfpromax.com/kf_growup.php?ok={{ok|urlencode}}&safeid={{safeid|urlencode}}
{{username|urlencode}}也没用了,我现在是抓包然后用{{username}} 而且我卡这里了= = Failed at 4/7 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://bbs.kfpromax.com/kf_growup.php?ok={{ok|urlencode}}&safeid={{safeid|urlencode}}
你点进模板 然后逐条请求 看哪条报错 截个图
把第三条请求的变量 safeid
值 &safeid=(.+?)"
改成 &safeid=(.+?)&
再试试呢
大概是这样
&safeid=(.+?)&
感谢!添加了如图两条后可以签到了,但是中文ID用{{username|urlencode}}也不行了是因为论坛换别的编码了嘛? 我预览的时候提示的用户名是乱码
&safeid=(.+?)&
感谢!添加了如图两条后可以签到了,但是中文ID用{{username|urlencode}}也不行了是因为论坛换别的编码了嘛? 我预览的时候提示的用户名是乱码
感谢测试 抽空我也更新一下模板 至于中文那个还是不太建议中文id啊......会奇怪的bug 乱码的话因为奇奇怪怪的编码方式不同所以就也不太清楚
&safeid=(.+?)&
感谢!添加了如图两条后可以签到了,但是中文ID用{{username|urlencode}}也不行了是因为论坛换别的编码了嘛? 我预览的时候提示的用户名是乱码
感谢测试 抽空我也更新一下模板 至于中文那个还是不太建议中文id啊......会奇怪的bug 乱码的话因为奇奇怪怪的编码方式不同所以就也不太清楚
因为我是2019年注册的,呜呜呜
签到提示Failed at 4/6 request, Fail assert: {"re": "你可以领取", "from": "content"} from failed_asserts, Request URL: https://bbs.kfpromax.com/kf_growup.php
签到提示Failed at 4/6 request, Fail assert: {"re": "你可以领取", "from": "content"} from failed_asserts, Request URL: https://bbs.kfpromax.com/kf_growup.php
没有签到成功就会报这个错 首先保证是最新的模板
我这边运行是正常的没办法复现
现在中文用户名还是不能签到,有什么解决办法吗
现在中文用户名还是不能签到,有什么解决办法吗
要不改个名吧 我这没中文名也测试不了
[{"comment":"GB2312编码","request":{"method":"POST","url":"api://util/gb2312","headers":[],"cookies":[],"data":"content={{username}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"username_gb2312","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"request":{"method":"POST","url":"https://bbs.kfpromax.com/login.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"Cache-Control","value":"max-age=0"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Origin","value":"https://bbs.kfpromax.com"},{"name":"Content-Type","value":"application/x-www-form-urlencoded"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/login.php"},{"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"}],"cookies":[],"data":"forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser={{username_gb2312}}&pwpwd={{ password |urlencode}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"safeid","re":"safeid=(.+?)&","from":"content"},{"name":"ok","re":"ok=(.+?)&","from":"content"}]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php?ok={{ok|urlencode}}&safeid={{safeid|urlencode}}","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/kf_growup.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"302","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"判断签到成功","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"今天的每日奖励已经领过了","from":"content"}],"failed_asserts":[{"re":"你可以领取","from":"content"}],"extract_variables":[{"name":"log_exp","re":"当前成长经验值 \\[ <b>(.+?)</b> \\] 点","from":"content"}]}},{"comment":"获取经验值","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_lv200.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"log_value","re":"<span class=\"k_f32\">(.+?)</span><br>","from":"content"}]}},{"comment":"生成日志","request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=当前进度分: {{log_value}} , 当前经验值: {{log_exp}} 点"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
@github-h 作者你好,先把username转化为GB2312编码就能支持中文用户名登录了
[{"comment":"GB2312编码","request":{"method":"POST","url":"api://util/gb2312","headers":[],"cookies":[],"data":"content={{username}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"username_gb2312","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"request":{"method":"POST","url":"https://bbs.kfpromax.com/login.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"Cache-Control","value":"max-age=0"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Origin","value":"https://bbs.kfpromax.com"},{"name":"Content-Type","value":"application/x-www-form-urlencoded"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/login.php"},{"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"}],"cookies":[],"data":"forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser={{username_gb2312}}&pwpwd={{ password |urlencode}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"safeid","re":"safeid=(.+?)&","from":"content"},{"name":"ok","re":"ok=(.+?)&","from":"content"}]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php?ok={{ok|urlencode}}&safeid={{safeid|urlencode}}","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/kf_growup.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"302","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"判断签到成功","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"今天的每日奖励已经领过了","from":"content"}],"failed_asserts":[{"re":"你可以领取","from":"content"}],"extract_variables":[{"name":"log_exp","re":"当前成长经验值 \\[ <b>(.+?)</b> \\] 点","from":"content"}]}},{"comment":"获取经验值","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_lv200.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"log_value","re":"<span class=\"k_f32\">(.+?)</span><br>","from":"content"}]}},{"comment":"生成日志","request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=当前进度分: {{log_value}} , 当前经验值: {{log_exp}} 点"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
@github-h 作者你好,先把username转化为GB2312编码就能支持中文用户名登录了
可以测试一下看行不行
[{"comment":"GB2312编码","request":{"method":"POST","url":"api://util/gb2312","headers":[],"cookies":[],"data":"content={{username}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"username_gb2312","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"request":{"method":"POST","url":"https://bbs.kfpromax.com/login.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"Cache-Control","value":"max-age=0"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Origin","value":"https://bbs.kfpromax.com"},{"name":"Content-Type","value":"application/x-www-form-urlencoded"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/login.php"},{"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"}],"cookies":[],"data":"forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser={{username_gb2312}}&pwpwd={{ password |urlencode}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"safeid","re":"safeid=(.+?)&","from":"content"},{"name":"ok","re":"ok=(.+?)&","from":"content"}]}},{"request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php?ok={{ok|urlencode}}&safeid={{safeid|urlencode}}","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/kf_growup.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"302","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"判断签到成功","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_growup.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"今天的每日奖励已经领过了","from":"content"}],"failed_asserts":[{"re":"你可以领取","from":"content"}],"extract_variables":[{"name":"log_exp","re":"当前成长经验值 \\[ <b>(.+?)</b> \\] 点","from":"content"}]}},{"comment":"获取经验值","request":{"method":"GET","url":"https://bbs.kfpromax.com/kf_lv200.php","headers":[{"name":"Host","value":"bbs.kfpromax.com"},{"name":"Connection","value":"keep-alive"},{"name":"sec-ch-ua","value":"\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""},{"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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,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://bbs.kfpromax.com/index.php"},{"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"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"log_value","re":"<span class=\"k_f32\">(.+?)</span><br>","from":"content"}]}},{"comment":"生成日志","request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=当前进度分: {{log_value}} , 当前经验值: {{log_exp}} 点"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]
@github-h 作者你好,先把username转化为GB2312编码就能支持中文用户名登录了
可以测试一下看行不行
可以了
换了一种更加简单的写法 可以作为参考
{{urlencode(username,encoding="gb2312")}}
换了一种更加简单的写法 可以作为参考
{{urlencode(username,encoding="gb2312")}}
HTTP 500: The error occurred when rendering template data: forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser={{urlencode(username,encoding="gb2312")}}&pwpwd={{password}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC \r\n TypeError("'str' object is not callable")
好像不行,而且参数从username变成urlencode了
forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser=urlencode({{username}},encoding="gb2312")&pwpwd={{password}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC
用大括号括住username后又变成这样
forward=&jumpurl=https%3A%2F%2Fbbs.kfpromax.com%2Findex.php&step=2&lgt=1&hideid=0&cktime=31536000&pwuser=urlencode({{username}},encoding="gb2312")&pwpwd={{password}}&submit=%EF%BF%BD%EF%BF%BD%C2%BC
用大括号括住username后又变成这样
你的框架版本号是多少 有达到20240210么 我这里测试没啥问题
我的也是20240210
我的也是20240210
emmm拉倒了,那我改回去吧哈哈哈哈
换了一种更加简单的写法 可以作为参考
{{urlencode(username,encoding="gb2312")}}
这样呢?
{{ username | urlencode(encoding="gb2312") }}
换了一种更加简单的写法 可以作为参考
{{urlencode(username,encoding="gb2312")}}
这样呢?
{{ username | urlencode(encoding="gb2312") }}
实测可以
Failed at 5/7 request, Fail assert: {"re": "你可以领取", "from": "content"} from failed_asserts, Request URL: https://bbs.kfpromax.com/kf_growup.php
Failed at 3/7 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://bbs.kfpromax.com/kf_growup.php
换了一种更加简单的写法 可以作为参考
{{urlencode(username,encoding="gb2312")}}
这样呢?
{{ username | urlencode(encoding="gb2312") }}
这下学会了 好哥哥
Failed at 5/7 request, Fail assert: {"re": "你可以领取", "from": "content"} from failed_asserts, Request URL: https://bbs.kfpromax.com/kf_growup.php
HAR 模板名称
绯月ScarletMoon
作者信息
github-h,JinchuanL
模板备注及说明
username/password
每日签到奖励,已对中文ID提供支持
https://bbs.kfpromax.com
HAR 文件名
绯月ScarletMoon.har
HAR 模板内容