![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-30 09:44 |
47,813 topics / 349,918 posts / today 0 new / 48,279 members |
| DOS批处理 & 脚本技术(批处理室) » Why can't QQ automatically log in via the command line? |
| Printable Version 2,658 / 11 |
| Floor1 HAT | Posted 2007-08-30 20:54 |
| 版主 Posts 5,017 Credits 9,023 | |
|
```
start qq.exe /start qquin:QQ number pwdhash:Hashed password /stat:40 ``` After running the command, the QQ login box pops up, but automatic login is not possible. I originally thought it was a problem with the QQ version, so I uninstalled the original QQ 2006 Coral虫 and downloaded QQ 2007 BETA 4 from the Tencent official website, but the problem remains. Hope an expert can give guidance. =========================================Summary========================================= Principle and usage method: ``` start "" "C:\Program Files\Tencent\QQ\qq.exe" /start QQUIN:843875648 PWDHASH:4Z1c1a8DeNoF9j+JHHRnrw== /stat:40 ``` 10: Online login After testing, currently, this method cannot be used to log in to the latest QQ 2009 Preview 4. It may be that the new version of QQ has not opened this command interface yet, and we can only look forward to the 2009 official version. Several methods to automatically obtain the QQ path: read the registry, search the entire disk, obtain process information, etc.: ``` @echo off rem Use WMIC to obtain the QQ path in the 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 ``` ``` @echo off rem Use WMIC to search the entire disk to obtain the QQ path for /f "skip=1 delims=" %%a in ('wmic datafile where "filename='qq' and extension='exe'" get name') do ( set QQPath=%%a ) echo %QQPath% pause ``` ``` @echo off rem Use the reg command to read the registry to 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 ``` ``` @echo off rem Use the reg export command to export the registry key and then search to obtain the QQ path to avoid the problem that reg query may eat Chinese characters 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 ( set QQPath=%%~a ) set QQPath=%QQPath:\\=\% echo %QQPath% pause ``` ``` @echo off rem Call 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=%%a ) echo %QQPath% pause ``` ``` @echo off rem Search the entire disk to obtain the 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 (*.exe) do ( if /i "%%~nxb" equ "%fName%" ( set fPath=%%b goto :show ) ) popd ) ) :show echo %fPath% pause ``` Encrypt the QQ password: QQ self-service login: How to perform Base64 on the 16 - bit MD5 value itself http://www.cn-dos.net/forum/viewthread.php?tid=27000 MD5 encryption.hta http://www.cn-dos.net/forum/viewthread.php?tid=36823 MD5.vbs http://www.cn-dos.net/forum/viewthread.php?tid=27000&page=2#pid303952 PWDHASH.vbs http://www.cn-dos.net/forum/viewthread.php?tid=27000&page=2#pid303953 JavaScript source code for QQ password to generate PWDHASH http://www.cn-dos.net/forum/viewthread.php?tid=29795&page=2#pid194595 [ Last edited by HAT on 2009-1-5 at 23:13 ] |
|
| Floor2 slore | Posted 2007-08-30 21:23 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
4Z1c1a8DeNoF9j+JHHRnrwAA==
|
|
| Floor3 HAT | Posted 2007-08-30 21:30 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Brother slore, it still doesn't work.
Does it work on your computer? Also, can you share your encryption method? |
|
| Floor4 slore | Posted 2007-08-30 21:53 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
I don't use this method for automatic login...
Yours is correct, need to add AA== Try using uppercase... QQUIN: PWDHASH: Encryption is all MD5+BASE64... |
|
| Floor5 HAT | Posted 2007-08-30 22:23 |
| 版主 Posts 5,017 Credits 9,023 | |
|
After testing, logging in is normal after capitalizing. It's such an issue, sweat. Points still need to be added.
|
|
| Floor6 vincenit | Posted 2007-09-01 17:14 |
| 新手上路 Posts 3 Credits 6 | |
|
Learned!
|
|
| Floor7 yt110 | Posted 2008-03-27 15:31 |
| 初级用户 Posts 9 Credits 22 | |
|
Oh, I see! That's why it didn't work!
|
|
| Floor8 acme | Posted 2008-04-17 21:21 |
| 中级用户 Posts 98 Credits 238 From 陕西 | |
|
Boss, can you write a detailed one for us newcomers to refer to?
I've tried many times and can't log in normally. Thanks! |
|
| Floor9 tvzml | Posted 2008-04-17 21:55 |
| 初级用户 Posts 67 Credits 157 | |
|
QQ2008 cannot capture the password input box with this trick
|
|
| Floor10 hansom | Posted 2008-12-12 00:31 |
| 初级用户 Posts 87 Credits 161 | |
|
There's nothing wrong. I used your command and logged in to your QQ, just changed the path to my own.
|
|
| Floor11 matlan | Posted 2009-03-14 12:58 |
| 初级用户 Posts 63 Credits 87 | |
|
Log in to QQ, go to System Menu -> Friends and Profile -> Update Friends. Then, through cmd -> wmic -> process, you can view the process to see the password.
|
|
| Floor12 srain87 | Posted 2009-03-18 08:40 |
| 新手上路 Posts 6 Credits 9 | |
|
Learned, interesting question
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |