WEBQQ the use of the latest landing protocols _php tips

Source: Internet
Author: User

This example describes the use 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 normal landing, the site released some of the latest landing agreement with WEBQQ articles, there is because the demo, some friends will add Q to ask, whether to adapt to the latest WEBQQ, This article will be a small demo for everyone to test.

Statement:

1, this demo is relatively simple, not on the password and verification code and so on wrong to do verification, just do landing demo.

2, QQ is a relatively private thing, then please use the test number landing the software, first villain after the Gentleman Bar.

This site and the latest WEBQQ landing agreement related articles, webqq two landing failed {"Retcode": The "errmsg": ""}

Solution: Scratch the bag again and find that now WEBQQ will log in to the SSL layer, which is https. At the first landing, the data returned as follows:

Copy 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& Regmaster=0 ', ' 0 ', ' Login successful! ', ' I ');

The above data contains a callback address with the following code:
Copy Code code as follows:
<a href= "Http://ptlogin4.web2.qq.com/check_sig?pttype=1&uin" >http://ptlogin4.web2.qq.com/check_sig? Pttype=1&uin</a>= 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

Access to the above address (302 jump, pay attention to the acquisition of cookies), get a cookie named P_skey, the cookie in the two landing, add to the cookie can be achieved two times landing.

WEBQQ Latest Landing Protocol

1. Obtain the Verification code

Method: Get

Address, the code is as follows:

Copy 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

Cookies: Commit None, return ptvfsession or Verifysession

2. First time Landing

Method: Get

Address, the code is as follows:

Copy Code code as follows:
https://ssl.ptlogin2.qq.com:443/login?u= "QQ number" &p= "Encrypted password" &verifycode "Authentication 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: Submitted to ptvfsession or verifysession, return to Pt2gguin, UIn, Skey, ETK, Superuin, Superkey, Supertoken, Ptisp, RK, Ptuserinfo, Ptcz, Ptcz, Airkey, Ptwebqq.

3. Return the callback address after the first successful landing

Method, get

Address, the code is as follows:

Copy 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&regmaster=0

Cookies: Submitted to Ptvfsession, Verifysession, Skey, Ptcz:, Ptwebqq, RK, Superkey, Supertoken. Return to Pt2gguin, UIn, Skey, P_uin, P_skey, Pt4_token.

4, the second time landing

Method: Post

Address:

Copy Code code as follows:
Http://d.web2.qq.com/channel/login2

Cookies: Submitted to 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 bag software, WEBQQ Landing for grasping bag, not too much technical content, you reader their own efforts, if you refer to the above explanation still can not solve your problem, that only check other reasons.

I hope this article will help you with your PHP program design.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.