First give a successful login case
>>> CVR 2 0x0804 Winnt 5.0 I386 MSNMSGR 6.2.0133 msmsgs example@hotmail.com/R/N <<< CVR 2 6.2.0137 6.2.0137 6.2.0133 http://download.microsoft.com/download/7 / 3/6/736D4A94-0C9E-4FDE-B2F7-D27C9585344D/setupdl.exe http://Messenger.msn.com/cn/r/n
>>> USR 3 TWN I Example@hotmail.com/r/n <<< XFR 3 NS 207.46.106.111:1863 0 207.46.104.20:1863/r/n
>>> CVR 5 0x0804 Winnt 5.0 i386 msnmsgr 6.2.0133 msmsgs example@hotmail.com/R/N <<< CVR 5 6.2.0137 6.2.0137 6.2.0133 http://download.microsoft.com/download/7 / 3/6/736D4A94-0C9E-4FDE-B2F7-D27C9585344D/setupdl.exe http://Messenger.msn.com/cn/r/n
>>> USR 6 TWN I example@hotmail.com/r/n <<< usr 6 TWN S LC = 1033, ID = 507, TW = 40, FS = 1, Ru = HTTP% 3A% 2F% 2FMessenger% 2emn % 2ECOM, CT = 1092884412, KPP = 1, KV = 5, VER = 2.1.6000.1, TPF = 016B4E2DC54F9FE757A1BB89A193B20F / R / N
>>> USR 7 TWN S t = 5Uplhbz0rDRDEXxbWaUHTLMQGtdtS0higP2gWaLyYVlQk3Dqoie4dk8BlqYQ58iWQnn9NWXv6! 5exSgeCmZebYKw $$ & p = 5UGdAYlQ9GnaN2T1DZsnwfxNALqNWxRvNQ8QKd6hTxNK11w1Y9FavahVnFgppUDeNPSRaPsUsr94lSnlZ * NncRzrGjmZnm5sf6ijY7AL1RosK9U6JtktRTS2VD83XTK4Mj! Z1bpN9a1ekVhJxNAc * R72iuRkpCMBZ3S! KSs9d! InA * b4coYoBy * Q $$ / r / n <<< USR 7 OK example@hotmail.com 1 0 / r / n <<< MSG Hotmail Hotmail 478 / R / N <<< Mime-Version: 1.0 / r / n <<< Content-Type: Text / X-msmsgsProfile; Charset = UTF-8 / R / N < << Logintime: 1092900336 / R / N <<< Emailenabled: 1 / r / n <<< MemberidHigh: 393216 / r / n <<< Memberidlow: -1973826610 / r / n <<< LANG_PREFERENCE: 2052 / R / N <<< preferredemail: / r / n <<< country: cn / r / n <<< Postalcode: / r / n <<< gender: / r / n <<< kid: 0 / r / n <<< Age: / r / n <<< bdaypre: / r / n <<< birthday: / r / n <<< Wallet: / r / n <<< Flags: 1027 / r / n <<< SID: 507 / r / n <<< kv: 5 / r / n <<< MSPAuth:! 5vtXPhjpbDgMo38 5RINb67 * QA0apj9arggB6TY2QQB13mV6m9ZbL01rK3rN3cK2 zFjHCiEThvcL Z6C5NFtdkg $$ / r / n <<< ClientIP:!! 218.75.208.52/r/n <<< ClientPort: 54976 / r / n <<< Abchmig Rated: 1 / r / n / r / n rest, login success ~! Here we give a description.
The first stage: connect the MSN allocation server DS, which is connected to the server "Messenger.hotmail.com:1863", we can start the landing process. The first step is to exchange the version of the MSN client and the server protocol. Client Send >>> Ver 1 MSNP10 MSNP9 CVR0 / R / N means telling the server I (ie your client) supports the MSNP10 and the MSNP9 protocol work. The server responds <<< Ver 1 MSNP10 MSNP9 CVR0 / R / N means you agree with the MSNP10 or MSNP9 protocol. Now that the client and the server have determined that they have to communicate between them.
The second step is to send the server AC system environment client to send >>> CVR 2 0x0804 Winnt 5.0 i386 msnmsgr 6.2.0133 MSMSGS EXAMPLE@hotmail.com/r/n0x0804 Winnt 5.0 i386 pointed out that the current operating environment of the client is Win2000, used It is Intel's microprocessor. Msnmsgr 6.2.0133 MSMSGS pointed out that MSMSGS.EXE version number server response <<< CVR 2 6.2.0137 6.2.0137 6.2.0133 http://download.microsoft.com/download/7/3 / 6/736D4A94-0C9E-4FDE-B2F7-D27C9585344D/setupdl.exe http://mesenger.msn.com/cn/r/n server response parameters included the highest version number, support version range, and provide the latest version of the download and Other information Address Note: The CVR command is sent is not necessary. Regardless of whether this command is sent, the MSN protocol works correctly. The third step is to request the login server client to send >>> USR 3 TWN I example @hotmail.com/r/ntwn i pointing to the server to send a Passport server to respond <<< XFR 3 NS 207.46.106.111:1863 0 207.46.104.20: 1863 / R / NNS pointed out that the client is required to reconnect 207.46.106.111 Request to reconnect the address, that is, the NS server address 207.46.104.20, after the Messenger.hotmail.com address, turn it off, turn off this connection. Enter the second phase.
The second stage: Connect the MSN notification server NS, that is, after connecting the above 207.46.106.111:1863, first, step first, step first, two steps. The third step is to request the login server client to send >>> USR 6 TWN I Example@hotmail.com/R/N, the same. The server responds to <<< USR 6 TWN S LC = 1033, ID = ..., TPF = ... / R / NTWN S indicates that the user is required to perform SSL, identity authentication LC = 1033, ID = ..., TPF =. .. Indicates important information about SSL identity authentication. SSL identity authentication This is a slightly detailed description. After SSL authentication, you can get the client "Admission Circle", such as t = 5UP ... $$ & P = 5ug ... $$
The fourth step is to request the authentication of the login client to send >>> USR 7 TWN S t = 5UP ... $$ & P = 5ug ... $$ / r / n server response <<< usr 7 ok eXample @ Hotmail. COM 1 0 / R / Nok EXAMPLE@hotmail.com Indicates the successful Passport to respond to the example@hotmail.com server to respond <<< Msg Hotmail Hotmail 478 / R / N Return information for some user basic parameters, login client address and IP Wait