WEBQQ usage of the latest login protocol, WEBQQ protocol usage
This article describes the usage of WEBQQ's latest landing protocol. Share to everyone for your reference. The specific analysis is as follows:
WEBQQ protocol Update, the original landing algorithm and other information changes, resulting in a lot of friends can not be normal landing, this site released some of the latest landing agreement with the WEBQQ related articles, because the demo is not released, some friends will add Q to ask, whether to adapt to the latest WEBQQ, This article will do a small demo for everyone to test.
Statement:
1, this demo is relatively simple, not the password and verification code, such as the wrong to do verification, just do a landing demo.
2, QQ is a more private things, then please use the test number to log on the software, the first villain after the gentleman.
This site and the latest WEBQQ landing agreement related articles, webqq two login failed {"Retcode": 103, "errmsg": ""}
Workaround: Re-grabbed a package, found that now WEBQQ will login to join the SSL layer is HTTPS at the time of the first landing, the data returned are as follows:
Copy the Code code as follows: PTUICB (' 0 ', ' 0 ', ' http://ptlogin4.web2.qq.com/check_sig?pttype=1&uin= your QQ number &service= Login&nodirect=0&ptsig= A string of encrypted data s_url=http%3a%2f%2fweb2.qq.com%2floginproxy.html%3flogin2qq%3d1%26webqq% 5ftype%3d10&f_url=&ptlang=2052&ptredirect=100&aid=1003903&daid=164&j_later=0&low_ Login_hour=0®master=0 ', ' 0 ', ' Login successful! ', ' I ');
The above data contains a callback address with the following code:
Copy the Code code as follows: Http://ptlogin4.web2.qq.com/check_sig?pttype=1&uin= your QQ number &service=login&nodirect= 0&ptsig= A string of encrypted data s_url=http%3a%2f%2fweb2.qq.com%2floginproxy.html%3flogin2qq%3d1%26webqq%5ftype%3d10&f_ url=&ptlang=2052&ptredirect=100&aid=1003903&daid=164&j_later=0&low_login_hour=0& Regmaster=0
Visit the above address (302 jump, note the cookie access), obtain a cookie named P_skey, the cookie in two times, added to the cookie can be achieved two times landing.
WEBQQ Latest Landing Agreement
1. Get Verification Code
Method: Get
Address, the code is as follows:
Copy the Code code as follows:https://ssl.ptlogin2.qq.com:443/check?uin=958736715&appid=1003903&js_ver=10041& js_type=0&login_sig=mge3pextk00li3ipmulhczout0xu*8mu6ykkzsiuo8*zqkrtm2rwpuofbhbgw1no&u1=http%3a%2f% 2fweb2.qq.com%2floginproxy.html&r=0.9403657828909222
Cookie: Submit None, return Ptvfsession or Verifysession
2. First time Login
Method: Get
Address, the code is as follows:
Copy the code as follows: https://ssl.ptlogin2.qq.com:443/login?u= "QQ number" &p= "Encrypted password" &verifycode "Verification Code" &webqq_ type=40&remember_uin=1&login2qq=1&aid=1003903&u1=http%3a%2f%2fweb2.qq.com%2floginproxy.html% 3flogin2qq%3d1%26webqq_type%3d40&h=1&ptredirect=0&ptlang=2052&daid=164&from_ui=1& Pttype=1&dumy=&fp=loginerroralert&action=3-12-12775&mibao_css=m_webqq&t=1&g=1&js_ Type=0&js_ver=10041&login_sig=mge3pextk00li3ipmulhczout0xu*8mu6ykkzsiuo8*zqkrtm2rwpuofbhbgw1no
Cookies: Submit Ptvfsession or Verifysession, return to Pt2gguin, UIn, Skey, ETK, Superuin, Superkey, Supertoken, Ptisp, RK, Ptuserinfo, Ptcz, Ptcz, Airkey, Ptwebqq.
3. Return callback address after successful first login
Method, Get
Address, the code is as follows:
Copy the Code code as follows: http://ptlogin4.web2.qq.com/check_sig?pttype=1&uin= "QQ number" &service=login&nodirect =0&ptsig=tlfzcsfkhnp57lg0tptlm6xlh73xeghneh3ptfyhcly_&s_url=http%3a%2f%2fweb2.qq.com%2floginproxy.html %3flogin2qq%3d1%26webqq_type%3d40&f_url=&ptlang=2052&ptredirect=100&aid=1003903&daid=164 &j_later=0&low_login_hour=0®master=0
Cookies: Submit Ptvfsession, Verifysession, Skey, Ptcz:, Ptwebqq, RK, Superkey, Supertoken. Returns Pt2gguin, UIn, Skey, P_uin, P_skey, Pt4_token.
4. Second time Login
Method: Post
Address: Copy code code as follows: Http://d.web2.qq.com/channel/login2
Cookies: Submit Ptvfsession, Verifysession, Skey, Ptcz:, Ptwebqq, RK, Superkey, Supertoken, P_skey, Pt4_token, UIn, P_uin, Ptui_ Loginuin.
Other details This article no longer describes, if there are other problems, please take the software, WEBQQ Landing to grab the package, no too much technical content, you crossing to work hard, if you refer to the above instructions still can not solve your problem, it only check other reasons.
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/931545.html www.bkjia.com true http://www.bkjia.com/PHPjc/931545.html techarticle WEBQQ the use of the latest login protocol, WEBQQ protocol usage This article describes the usage of the WEBQQ latest landing protocol. Share to everyone for your reference. The specific analysis is as follows: WEBQQ after the protocol update ...