Project

General

Profile

Download (1 KB) Statistics
| Branch: | Tag: | Revision:
1
# Tencent QQ Protocol - Chinese instant messenger protocol - http://www.qq.com
2
# Pattern attributes: good fast fast
3
# Protocol groups: chat
4
# Wiki: http://www.protocolinfo.org/wiki/QQ
5
#
6
# Over six million people use QQ in China, according to wsgtrsys.
7
# 
8
# This pattern has been tested and is believed to work well.
9
#
10
# QQ uses three (two?) methods to connect to server(s?).
11
# one is udp, and another is tcp
12
# udp protocol: the first byte is 02 and last byte is 03
13
# tcp protocol: the second byte is 02 and last byte is 03
14
#   tony on protocolinfo.org says that now the *third* byte is 02:
15
#     "but when I tested on my PC, I found that when qq2007/qq2008 
16
#     use tcp protocol, the third byte instead of the second is always 02.
17
#
18
#     So the QQ protocol changed again, or I have made a mistake, I wonder 
19
#     that."
20
#   So now the pattern allows any of the first three bytes to be 02.  Delete
21
#   one of the ".?" to restore to the old behaviour.
22
# pattern written by www.routerclub.com wsgtrsys
23

    
24
qq
25
^.?.?\x02.+\x03$
(64-64/109)