中国DOS联盟论坛

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-08-11 20:36
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to extract QQ numbers from Info.db of QQ2009 (Solved)
Printable Version  7,017 / 30
Floor1 Hanyeguxing Posted 2009-03-02 10:29
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
The uploaded QQ2009 information info.db file http://upload.cn-dos.net/img/1348.rar

For example, there are the following garbled codes:

Sky dream? Avoid: J Yang come]CF K- Yin Yan sky dream? Avoid: Zhen s? Dead ⑽ Exquisite? 
NF 
 515187266 9TD  Home and abroad
04  435853964 -TD Umbrella 18 Yan
?
 5? oYun Lei L(   } ~ Put and put blocks €8362-406
Duty scold and fear u39E Thump r 515187266 >TD 
ffffTA ?{-%/%//>PWf@=Oφ≌οη∠┫


Requirement: Display the digital strings line by line.
1. Since the QQ number and the numbers in the garbled code may be connected together due to directly filtering other characters, making it impossible to distinguish, I personally think that replacement should be used.
2. Because there are digital strings like 8362-406 in the garbled code, the - should not be filtered out during filtering.
3. Since there are numbers in this garbled code, the continuous digital strings with less than 5 digits are required to be deleted.
4. Because there are digital strings like 8362-406 in the garbled code, which are not QQ numbers, the digital strings containing - in the middle are deleted.
5. Delete duplicate digital strings

The sample effect after extracting the QQ number is as follows:

435853964
515187266




Originally posted by HAT at 2009-3-4 05:37:
Floor2 yishanju Posted 2009-03-02 19:49
银牌会员 Posts 1,357 Credits 1,488
Really 4 wants to play dead people or not

Use the FR tool to replace with just one command

fr -ric:"" -t:"A" 1.txt

Get the result like the following


[ Last edited by yishanju on 2009-3-2 at 19:52 ]
Floor3 yishanju Posted 2009-03-02 19:53
银牌会员 Posts 1,357 Credits 1,488
Modify, do not replace spaces and with A

fr -ric:"" -t:"A" 1.txt

The result is as follows:



[ Last edited by yishanju on 2009-3-2 at 20:40 ]
Floor4 HAT Posted 2009-03-02 23:10
版主 Posts 5,017 Credits 9,023
Floor5 yishanju Posted 2009-03-03 06:21
银牌会员 Posts 1,357 Credits 1,488
-_-_ I also wanted to use SED before, but later I found that the carriage returns and line feeds of the processed document all turned into black squares, which was really disgusting, so I didn't use SED anymore
Floor6 HAT Posted 2009-03-03 06:43
版主 Posts 5,017 Credits 9,023
That's because you haven't found the right version ^_^
Floor7 yishanju Posted 2009-03-03 06:45
银牌会员 Posts 1,357 Credits 1,488
Please clarify the specific content that needs to be translated. The current text "给传个呗 我在GUNWIN32 上下的sed 4.15" is not a complete and clear sentence with specific technical content for a straightforward translation. Please provide more context or clarify the exact text to be translated precisely.
Floor8 HAT Posted 2009-03-03 08:01
版主 Posts 5,017 Credits 9,023
Batch processing room attachment collection special post http://www.cn-dos.net/forum/viewthread.php?tid=25914
Floor9 Hanyeguxing Posted 2009-03-03 12:42
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Thanks to all great experts, I just want to use a batch script to complete it. Can it be done without relying on other tools?
This is for someone else. I can't just send someone a batch script and then send them a file...
Disdain myself, hehe.
Operating system: XP SP2 or SP3

[ Last edited by Hanyeguxing on 2009-3-3 at 12:46 ]
Floor10 yishanju Posted 2009-03-03 13:18
银牌会员 Posts 1,357 Credits 1,488
Is it really that difficult to pack them together and send them over?
Floor11 netbenton Posted 2009-03-03 13:36
银牌会员 Posts 752 Credits 1,916 From 广西
::Process files within 60K, can't handle larger ones. The assembly language part is assisted by batch processing COM development tools.
::Specify the file to modify at %1
@echo off
goto :begin
a 80
push bx
push cx
mov si,100
mov di,si
lodsb
cmp al,30
jb 0090
cmp al,39
jb 0092
mov al,41
stosb
loop 0087
pop cx
pop bx
nop

t=80
g 97

w
q
q
:begin
debug %1<%~nx0

[ Last edited by netbenton on 2009-3-3 at 11:37 ]
Floor12 netbenton Posted 2009-03-03 14:01
银牌会员 Posts 752 Credits 1,916 From 广西
@echo off
goto :bengin
a 80
db, 53 51 BE 00 01 89 F7 AC 3C 30 72 04 3C 39 72 02 B0 41 AA E2
db, F2 59 5B 90

t=80
g 97

w
q
q
:bengin
debug %1<%~nx0
Floor13 Hanyeguxing Posted 2009-03-03 14:16
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Originally posted by netbenton at 2009-3-3 13:36:
::Process files within 60K or less; larger ones can't be handled. The assembly language part is assisted by batch processing com development tools to write.
::Specify the file to be modified at %1
@echo off
goto :begin
a 80
push bx
push cx
mov si,10...
This file to be processed is at least 170kb, and 350kb is very common.

Originally posted by yishanju at 2009-3-3 13:18:
Is it very difficult to upload all together?
Sir, give a download address of the fr tool, I'll use it, thank you
Floor14 yishanju Posted 2009-03-03 14:23
银牌会员 Posts 1,357 Credits 1,488
Floor15 Hanyeguxing Posted 2009-03-03 14:41
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Originally posted by yishanju at 2009-3-3 14:23:
fr download address:
http://baiy.cn/utils/fr/index.htm

Now start learning fr and sed, hehe

Using fr, there are still a small number of black blocks left 5555555555555555
Dear upstairs, test with info.db in QQ2009 version to know

[ Last edited by Hanyeguxing on 2009-3-3 at 14:59 ]
1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023