Reprinted from Burial sacrifice in skeleton final editing LJ_SUNTB principle and Usage: code:
Start "" C:\Program files\tencent\qq\qq.exe/start qquin:843875648 pwdhash:4z1c1a8denof9j+jhhrnrw==/stat:40 Reference:
10: Online Landing
40: Stealth Landing
41: Online Landing
Qquin and Pwdhash must use uppercase letters
Principle: QQ in the transmission of passwords, first do a MD5 encryption, and then do a BASE64 transformation, so you can get the normal text information for network transmission. Find a MD5 online search site (such as http://www.xmd5.org/), enter the 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 result of the MD5 encryption just obtained, the conversion gets the hash code.
Using the SendKeys method of VBS to log in automatically, there is a risk that there is no guarantee of obtaining the correct delivery form, and therefore is not considered. After testing, currently unable to use this method to land the latest QQ2009 official version, may be the new version of QQ did not open this command line interface, can only continue to look forward to the later version.
Automatic access to the QQ path of several methods: Read the registry, the overall search, get process information, etc.: code:
Copy Code code as follows:
@echo off
REM uses WMIC to get the QQ path in process information
for/f "tokens=2 delims=="%%a in (' WMIC process where ' name= ' Qq.exe ' "Get Executablepath/value ') do (
Set Qqpath=%%a
)
Echo%qqpath%
Pause Code:
Copy Code code as follows:
@echo off
REM uses WMIC's overall search to get the QQ path
for/f "Skip=1 delims="%%a in (' WMIC datafile where ' filename= ' QQ ' and extension= ' exe ' ' get Name ') does (
Set Qqpath=%%a
)
Echo%qqpath%
Pause Code:
Copy Code code as follows:
@echo off
REM uses reg command to read registry to get 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 Code code as follows:
@echo off
REM uses the reg EXPORT command to place registry entries everywhere and then search for the QQ path to avoid the problem of eating Chinese characters that may exist 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 to directly change the \ n in a string into \
Set Qqpath=%%~a
)
Set qqpath=%qqpath:\\=\%
Echo%qqpath%
Pause Code:
Copy Code code as follows:
@echo off
REM Call VBS READ Registry get 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=%%a
)
Echo%qqpath%
Pause Code:
Copy Code code as follows:
@echo off
REM Search gets QQ path
Set Fname=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%%a:\
FOR/R%%b in (%fname%.) Do (
if/i "%%~NXB" equ "%fname%" (
Set Fpath=%%b
Goto:show
)
)
popd
)
)
: Show
Echo%fpath%
Pause