1 |
4ae45b10
|
Ermal Luçi
|
# MSN Messenger - Microsoft Network chat client
|
2 |
|
|
# Pattern attributes: good slow notsofast
|
3 |
|
|
# Protocol groups: chat proprietary
|
4 |
|
|
# Wiki: http://www.protocolinfo.org/wiki/MSN_Messenger
|
5 |
66f2dd0e
|
Ermal Lu?i
|
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
|
6 |
4ae45b10
|
Ermal Luçi
|
#
|
7 |
|
|
# Usually uses TCP port 1863
|
8 |
|
|
# http://www.hypothetic.org/docs/msn/index.php
|
9 |
|
|
# http://msnpiki.msnfanatic.com/
|
10 |
|
|
#
|
11 |
|
|
# This pattern has been tested and is believed to work well.
|
12 |
|
|
|
13 |
|
|
msnmessenger
|
14 |
|
|
|
15 |
|
|
# First branch: login
|
16 |
|
|
# ver: allow versions up to 99.
|
17 |
|
|
# I've never seen a cvr other than cvr0. Maybe this will be trouble later?
|
18 |
|
|
# Can't anchor at the beginning because sometimes this is encapsulated in
|
19 |
|
|
# HTTP. But either way, the first packet ends like this.
|
20 |
|
|
# Second/Third branches: accepting/sending a message
|
21 |
|
|
# I will assume that these can also be encapsulated in HTTP, although I have
|
22 |
|
|
# not checked. Example of each direction:
|
23 |
|
|
# ANS 1 quadong@hotmail.com 1139803431.29427 17522047
|
24 |
|
|
# USR 1 quadong@hotmail.com 530423708.968145.366138
|
25 |
|
|
|
26 |
|
|
# Branches are written entirely separately for better performance.
|
27 |
|
|
ver [0-9]+ msnp[1-9][0-9]? [\x09-\x0d -~]*cvr0\x0d\x0a$|usr 1 [!-~]+ [0-9. ]+\x0d\x0a$|ans 1 [!-~]+ [0-9. ]+\x0d\x0a$
|