jixunmoe / jjBot

Just another Javascript Bot for webqq (not maintained anymore)
MIT License
31 stars 13 forks source link

新的登录代码,募集志愿者 #21

Open jixunmoe opened 9 years ago

jixunmoe commented 9 years ago

没进行详细测试,因此准备募集10w 只猴子 志愿者帮忙。

具体测试方法:

  1. 下载这个文件
  2. 更改 vm/init.js 内容,参见附录 (也有可能不用改?)。
  3. tx-vm.js 文件填入自己的登录信息,以及手动抓取一次 ptui_checkVC 的返回内容 (参见附录)。
  4. 执行 node tx-vm.js,将输出的地址放入浏览器,如果成功,会显示 登陆成功 这样的文字。
ptuiCB('0','0','http://ptlogin4.web2.qq.com/check_sig?pttype=1&uin=<qq>&service=login&nodirect=0&ptsigx=<隐藏>&s_url=http%3A%2F%2Fw.qq.com%2Fproxy.html%3Flogin2qq%3D1%26webqq_type%3D10&f_url=&ptlang=2052&ptredirect=100&aid=501004106&daid=164&j_later=0&low_login_hour=0&regmaster=0&pt_login_type=1&pt_aid=0&pt_aaid=0&pt_light=0','0','登录成功!', '<昵称>');

问:什么时候整合到 jjBot

答:暑假,或有时间的志愿者提交 PR。

附录

抓取 vm/init.js

访问下面这个地址,然后从 <script>//错误上报 后面的内容一直复制到 </script><title>weblogin 之前。

https://ui.ptlogin2.qq.com/cgi-bin/login?daid=164&target=self&style=16&mibao_css=m_webqq&appid=501004106&enable_qlogin=0&no_verifyimg=1&s_url=http%3A%2F%2Fw.qq.com%2Fproxy.html&f_url=loginerroralert&strong_login=1&login_state=10&t=20131024001

抓取 vm/mq_comm.js

https://ui.ptlogin2.qq.com/js/10124/mq_comm.js

其中, 10124 是 js 版本。

抓取 ptui_checkVC

https://ssl.ptlogin2.qq.com/check?pt_tea=1&uin=<QQ号>&appid=501004106&js_ver=10124&js_type=0&login_sig=&u1=http%3A%2F%2Fw.qq.com%2Fproxy.html&r=

返回内容类似这样:

ptui_checkVC('0','!RC2','\x00\x00\x00\x00\xaa\xcc\xbb\xcc','<一堆十六进制文字>','0');

测试的是成功率,以及 vm\init.jsvm\mq_comm.js 的时效。 请务必将测试结果直接回复,感谢您的配合

binsvivi commented 9 years ago

似乎验证码验证一直是失败的 ptuiCB('4','0','','0','您输入的验证码不正确,请重新输入。', '');