has given the corresponding JS judgment code, how to use JS or PHP to determine whether the computer login QQ and get the corresponding QQ number

Source: Internet
Author: User
has given the corresponding JS judgment code, how to use JS or PHP to determine whether the computer login QQ and get the corresponding QQ number
This post was last edited by dz215136304 on 2013-09-29 10:55:56

Similar to QQ mailbox Fast login, the following is reproduced on the internet, now want to use JS or PHP implementation (this is achievable, has seen others have done, with JS implementation)

Sometimes do the program, like the registration of the program with the user QQ number binding, the program only allowed to login successfully designated QQ account can be used,

In order to achieve this goal, some people use the API to take QQ window, QQ tray icon on the QQ account,

But this method is more troublesome to write, if the user is interested in playing, you can also use the API to modify the target information you want to get before you get the software!

There is also a way to read the memory, of course, to find a successful QQ login to store the address of QQ number, the base address is definitely not there, plus QQ update frequently,

So the memory reading method is also not very good,



In order to achieve this goal, there is another way that is to use the QQ Web page itself, this method is both convenient and accurate, the following principle:



Open: Http://xui.ptlogin2.qq.com/cgi-bin/qlogin

We will find this page will automatically get our registered QQ information, and can achieve fast login, analysis of:

The key thing:



By analyzing this JS, we find the following 2 important functions:



function Ptui_qinit () functions to initialize the Ssoaxctrlforptlogin.ssoforptlogin2 object and create a ActiveXObject object

Hummer_loaduin () This function is really through ssoaxctrlforptlogin this COM to get the QQ information is logged in,

Here, we tried to invoke the COM object of Ssoaxctrlforptlogin by ourselves, but found that it failed, for the following reason.



Since you can't call the Ssoaxctrlforptlogin object yourself, try saving the page as a local and then open it to see what happens, and the results are as follows:

"Fast logon failed, please return to retry or switch to normal login mode." ”

Obviously, the Ssoaxctrlforptlogin object is to determine the current URL, if the URL is not from the following domain name can not initialize successfully:

var site=["qq.com", "paipai.com", "tencent.com", "soso.com", "taotao.com", "tenpay.com", "foxmail.com", "wenwen.com", " 3366.com "," imqq.com "];



Well, since you can't use a local page, or write your own program to call its COM, then we will directly access it to get the information on its page has been good:

Also attached is a well-formed Xui.js code,

Net.txt file is implemented in C #, now want to use JS or PHP implementation, you can refer to the Code of C #



Code Download Address: Http://pan.baidu.com/s/144rug

Share to:


------Solution--------------------
I already have a private messages.
  • 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.