The corresponding js judgment code has been provided. how can I use js or php to determine whether the computer is logged on to qq and obtain the corresponding qq number?
Source: Internet
Author: User
The corresponding js judgment code has been provided. how can I use js or php to determine whether the computer is logged on to qq and obtain the corresponding qq number? This post was last posted from dz215136304 to 2013-09-2910: 55: 56. edit the quick logon similar to QQ mail. The following is a reprinted message on the internet. now I want to use js or php (this can be achieved. the corresponding js judgment code has been provided, how to use js or php to determine whether the computer is logged on to qq and obtain the corresponding qq number
At the end of this post, dz215136304 edited a quick logon similar to QQ mail at 10:55:56 on. The following is a reposted message on the internet. now I want to use js or php (this can be achieved, I have already seen others and implemented it using js)
Sometimes, when you are a program, you like to bind the registration of the program to the user's QQ number. The program can only be used when the user successfully logs on to the specified QQ account,
For this purpose, someone uses the API to retrieve the QQ account on the QQ window and QQ tray icon,
However, this method is difficult to write. if you are interested in playing games, you can also use the API to modify the target information you want to obtain before your software gets it!
Another method is to read the memory. of course, if you need to find an address that stores the QQ number after successful logon, the base address certainly does not exist. In addition, QQ is frequently updated,
Therefore, the memory reading method is not very good,
To achieve this goal, another method is to use the functions of QQ web pages. this method is convenient and accurate. The following describes the principle:
Open: http://xui.ptlogin2.qq.com/cgi-bin/qlogin
We will find that this page will automatically obtain our logged-on QQ information, and can achieve rapid login, analysis:
Key things:
Script
By analyzing this js, we can find the following two important functions:
Function ptui_qInit (): Initializes the SSOAxCtrlForPTLogin. SSOForPTLogin2 object and creates an ActiveXObject object.
Hummer_loaduin () is a function that actually uses the SSOAxCtrlForPTLogin COM to obtain information about the logged-on QQ,
At this point, we try to use a program to call the com object of SSOAxCtrlForPTLogin, but the failure is found. The reason is as follows,
Since you cannot manually call the SSOAxCtrlForPTLogin object, first try to save the page as a local one to see what happens. The result is as follows:
"Quick logon failed. please try again or switch to normal logon mode ."
Obviously, the SSOAxCtrlForPTLogin object is to judge the current url. if the url is not from any of the following domain names, initialization fails:
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 cannot use a local page or write a program to call its COM, you can directly access it to obtain the information that has been obtained on the page:
The formatted xui. js code is also attached,
The net.txt file is implemented in C #. if you want to implement it in js or php, refer to the C # code below.
Code: http://pan.baidu.com/s/144rug share:
------ Solution --------------------
You already have a private email
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