2017 最新qq登录算法 2

整体流程变化不大,参考之前的帖子 http://www.cnblogs.com/reaper-spring/p/6290837.html

除了加密脚本又变了,剩下的就是堵上了之前算法的一个无用参数:

URL_GETTYPE = 'http://captcha.qq.com/cap_union_new_gettype' +\
              '?aid=%s' % APPID +\                                               
'&asig=&captype=&protocol=http&clientype=2&disturblevel=&apptype=2&curenv=inner' +\ '&uid=%s' % UID +\ '&cap_cd=%s' % CAP_CD +\ '&lang=%s' % CAP_CD +\ '&callback=_aq_188953';

其会返回一个名为'sess'的参数,现在取得验证码需要它。

    URL = 'http://captcha.qq.com/cap_union_new_getcapbysig?' +\
          'aid=%s' % APPID +\
          '&asig=&captype=&protocol=http&clientype=2&disturblevel=&apptype=2&curenv=inner&noBorder=noborder&showtype=embed' +\
          '&uid=%s' % UID +\
          '&cap_cd=%s' % CAP_CD +\
          '&lang=2052&rnd=7440&rand=0.8917365573600687' +\
          '&vsig=%s' % VSIG +\
          '&sess=%s' % SESS +\
          '&ischartype=1';

  

posted @ 2017-05-22 13:13  reaper.spring  阅读(745)  评论(2编辑  收藏  举报