The QQ number input box does not have the TabStop property, so it cannot be positioned automatically. Pressing Tab multiple times or using Shift+Tab won't position the input to the number input box. At least it's not possible with QQ 2006 and 2007. Therefore, the SendKeys method is useless, which means the script on the sixth floor is not valid for any QQ number. But for the QQ number saved in the number box previously, that is, the number logged in last time, then just entering the password can be effective. But this not only exposes the password in plain text, but also once the QQ number is changed, this method will no longer be effective. However, there is a way to achieve automatic login. Tencent has an official login interface, and the QQ automatic login function is also based on this interface.
When QQ transmits the password, it first performs an MD5 encryption, and then a BASE64 transformation, so that normal text information can be obtained for network transmission. For a password in the form of "abcd", the encrypted and converted ciphertext that can be used for transmission is converted in the way of BASE64(MD5(abcd)). Calculating this expression, we can get the value 4vxxTEcn7pOV8yTNLn8zHw==. Then, using the command-line parameters supported by QQ.exe itself, automatic login can be realized. The form of the command line is as follows: QQPath\QQ.exe /START QQUIN:123456 PWDHASH: 4vxxTEcn7pOV8yTNLn8zHw== /STAT:40. Here, 40 means that the login status is invisible login, and 10 means online login. QQPath represents the installation path of QQ, which varies from machine to machine. 123456 represents the QQ number, and 4vxxTEcn7pOV8yTNLn8zHw== represents the encrypted and converted password "abcd". By replacing this format with real information, automatic login can be realized.
Therefore, as long as such a script is made, automatic login can be realized. Here I provide a script for verification, which is one of my QQ numbers. You can log in to have a look. Anyway, the password won't be leaked.
On Error Resume Next
Set Shilyx = CreateObject("WScript.Shell")
QQPath = Shilyx.RegRead("HKLM\SOFTWARE\Tencent\QQ\Install")
Shilyx.Run """" & QQPath & "\QQ.exe"" /START QQUIN:303501987 PWDHASH:WQbDAvPc/eA0ooWlBsq72g== /STAT:40"
Entering the following content directly in the system run will have the same effect:
%ComSpec% /c echo CreateObject("WScript.Shell").Run """" + CreateObject("WScript.Shell").RegRead("HKLM\SOFTWARE\Tencent\QQ\Install") + "\QQ.exe"" /START QQUIN:303501987 PWDHASH:WQbDAvPc/eA0ooWlBsq72g== /STAT:40">C:\_Q.vbs & WScript C:\_Q.vbs && del C:\_Q.vbs
This one can be guaranteed to be effective before May.
I have a program that generates such a script. I wonder if it can be uploaded?
Here is
related introduction
http://hi.baidu.com/shilyx/blog/item/43a0b6a15212e08b471064c0.htm
[
Last edited by my3439955 on 2007-6-9 at 12:14 AM ]