Batch Processing Automatic Login QQ summary and related discussions

Source: Internet
Author: User

Repost the principle and usage of the LJ_SunTB after the funeral sacrifice is finally edited in the skeleton: code:
Start "C: \ Program Files \ Tencent \ QQ \ qq.exe"/start QQUIN: 843875648 PWDHASH: 4Z1c1a8DeNoF9j + JHHRnrw ==/ stat: 40 reference:
10: Online Login
40: Stealth Login
41: Online Login
QQUIN and PWDHASH must use uppercase letters

Principle: QQ implements MD5 encryption and BASE64 conversion during password transmission, so that normal text information can be obtained for network transmission. Find a MD5 online query site (such as http://www.xmd5.org/), enter the plain text of the QQ password, convert to get MD5 encryption results, and then find a BASE64 online query site (such as http://www.waishi.net/ip/tools/base64.htm ), enter the MD5 encryption result and convert it to HASH code.

If you use the SendKeys method of VBS to log on automatically, it is risky to obtain the correct ticket. After testing, you cannot use this method to log on to the latest official version of QQ2009. It may be that the new version of QQ has not enabled this command line interface. You can only continue to look forward to future versions.

The following methods can be used to automatically obtain the QQ path: Read the registry, perform full search, and obtain process information:Copy codeThe Code is as follows: @ echo off
Rem uses WMIC to obtain the QQ path in Process Information
For/f "tokens = 2 delims =" % a in ('wmic process where "name1_'qq.exe '" get executablepath/value') do (
Set QQPath = %
)
Echo % QQPath %

Pause code:Copy codeThe Code is as follows: @ echo off
Rem uses WMIC to search for the QQ path
For/f "skip = 1 delims =" % a in ('wmic datafile where "filename = 'qq' and extension = 'exe '" get name') do (
Set QQPath = %
)
Echo % QQPath %

Pause code:Copy codeThe Code is as follows: @ echo off
Rem uses the reg command to read the registry and obtain the QQ path
For/f "tokens = 2 *" % a in ('reg query HKEY_LOCAL_MACHINE \ Software \ Tencent \ QQ/v Install ^ | findstr "Install" ') do (
Set QQPath = % B
)
Echo % QQPath %

Pause code:Copy codeThe Code is as follows: @ echo off
Rem uses the reg export command to search for the QQ path from the Registry to avoid the possibility of using Chinese Characters in reg query.
Reg export "HKEY_LOCAL_MACHINE \ SOFTWARE \ Tencent \ QQ" "% temp % \ qq.txt"> nul
For/f "tokens = 2 delims =" % a in ('Type "% temp % \ qq.txt" ^ | findstr/I "Install" ') do (
Rem can use % ~ Fa directly converts \ In the string \
Set QQPath = % ~ A
)
Set QQPath = % QQPath: \\=\%
Echo % QQPath %

Pause code:Copy codeThe Code is as follows: @ echo off
Rem calls VBS to read the registry to obtain the QQ path
> "% Temp % \ my. vbs" echo Set WshShell = WScript. CreateObject ("WScript. Shell ")
> "% Temp % \ my. vbs" echo WScript. Echo WshShell. RegRead ("HKEY_LOCAL_MACHINE \ SOFTWARE \ Tencent \ QQ \ Install ")
For/f "delims =" % a in ('cscript/nologo "% temp % \ my. vbs" ') do (
Set QQPath = %
)
Echo % QQPath %

Pause code:Copy codeThe Code is as follows: @ echo off
Full rem search for QQ path
Set fname1_qq.exe
For % a in (c d e f g h I J K L M N O P Q R S T U V W X Y Z) do (
If exist % a: \ nul (
Pushd % :\
For/r % B in (% fName % ?) Do (
If/I "% ~ Nxb "equ" % fName % "(
Set fPath = % B
Goto: show
)
)
Popd
)
)
: Show
Echo % fPath %
Pause

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.