Step-by-step to do WEBQQ robot-(a) (verification code)

Source: Internet
Author: User

x

Well done! In order to explore WEBQQ HTTP request flow and data interaction, I paid a lot of effort.

Write down this article!!! This is my lost youth.

I will pack the source code after the series is finished

------My journey is the star of the Sea

One go to webqq page

Two Check if a verification code is requiredFirst get once for this page, save the cookie

After the user has entered the QQ number, an HTTP request will be triggered to detect whether the account requires a verification code.

Request Address: "https://ssl.ptlogin2.qq.com/check?uin=" + Qqnum + "&appid=501004106&js_ver=10095&js_type=0 &login_sig=a9nq-9*pnzkfxzp7jce7vorx5z9x6khffy44fkhikad-n8fshtak1r1gzrjgsxza&u1=http%3a%2f%2fw.qq.com% 2fproxy.html&r=0.6158497643191367 ";

Three No verification code is required to return the result

Analysis:

1. Here is the use of the Jsonp method, the security of QQ number is detected

2. The operation of this figure does not require verification code check

3. The first 4 parameters of the method are used:

    • 1 means a verification code is required, and 0 means the QQ number is safe.
    • The second parameter indicates the verification code, QQ security indicates that you do not have to enter the verification code, TX will help you to generate the background verification code ...
    • QQ number 16 in the system
    • Verifysession, after the article is used, save it first

Four The return result of the verification code is required

Analysis:

1. Here is the use of the Jsonp method, the security of QQ number is detected

2. The operation of this figure requires verification code check (multiple login, IP anomaly, etc.)

3. The parameters returned are only the first one, 1 means that a verification code is required, and 0 means that the QQ number is safe.

Five When you need a verification code, download the Verification code

1. Requested address: "https://ssl.captcha.qq.com/getimage?aid=501004106&r=0.8478438374586403&uin=" + qqnum;

2. Request to bring Referer: "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 ";

3. After obtaining the picture, you need to save the cookie of the request

4. Find the value of "verifysession" from the cookie and save it

xClose Very good! Have completed the preparation before landing.

Using C # to impersonate an HTTP request can refer to the jab here

Bo Master graduated more than half a year, only to find a job, do outsourcing every day is very tired, at night try to spare time to improve this series, please pay more attention ~

Do you have any interest in this article?

It's okay. WQNMLGB

.

Step-by-step to do WEBQQ robot-(a) (verification code)

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.