Valhalla Legends Forums Archive | General Programming | YIM Packets

AuthorMessageTime
Jaquio
Alright, wasn't sure where to post this, but since it's general programming figured I would post it here..

I was wondering if anyone has any documentations for Yahoo Messenger Packets, preferably the new YIM. I have packet logged myself connecting an whatnot but can't make heads or tails from the log.. Was just wondering if anyone did have it... Or knew where I could find one, have tried google an found once for C/C++ but I am gonna do this in VB.

When I first connect to the server, I recieve nothing.. So I guess I have to send something first? Who knows, I have tried sending everything.. No idea what to do.


So yea, any ideas would be really great.. Thanks.
April 27, 2006, 5:35 AM
MysT_DooM
Hope this helps
http://www.venkydude.com/articles/yahoo.htm
April 27, 2006, 7:16 PM
Jaquio
Well it did a bit.. But some of that I already know.

See what I am looking for is something like.. Uhh.. Hmm.. Something close to BNet Docs on the YIM Protocol if it's anywhere possible to find one.. If not I guess I will have to try an do it myself? Lol, Because I logged on using an exact packet log from a previous logon an it worked.. But I wanna know like, where a dword,word or byte goes.

I don't know I guess I will eventually figure it out, thanks again. :)
April 27, 2006, 9:46 PM
rabbit
BnetDocs was built by people with some free time and a good base of general programming/networking knowledge.  If you want to make YIMDocs, I'm sure a lot of people would be greatful and offer what help they can.

[edit]
You can also look at Gaim's source code.
April 27, 2006, 11:48 PM
Jaquio
[quote author=rabbit link=topic=14857.msg151394#msg151394 date=1146181711]
BnetDocs was built by people with some free time and a good base of general programming/networking knowledge.  If you want to make YIMDocs, I'm sure a lot of people would be greatful and offer what help they can.

[edit]
You can also look at Gaim's source code.
[/quote]


Hmm, not a bad idea to make a YIMDocs, or even a IMDocs(For all instant messenger protocols.) would be a nice project to get going. Not sure how many people would actually wanna help, or if it would even be helpful to anyone. But I am willing to try anything, if anyone wants in starting tomorrow I will be on AIM,YIM an MSN if anyone wants to talk.

AIM: CyberJaquio
YIM: bjmoreton.at.yahoo.com
MSN: bjmoreton.at.gmail.com

An if you want you could just email me at bjmoreton.at.gmail.com I have a webserver an everything for another site, so a webpage for it all would be already to go. An I am a great PHP Scripter so making scripts to store/view all the information would be an easy task for me. So yea, if anyone wants in just holla at me tomorrow.


I will also be currently trying to get around to figuring out YIM Connection sometime tonight, if I get anywhere I will post it.
April 28, 2006, 2:22 AM
Myndfyr
Why don't you try out a Wiki such as MediaWiki?  With good organization, I think a wiki format would be even better than BnetDocs (such as my super-secret WoW protocol Wiki) ;)
April 28, 2006, 3:00 AM
Jaquio
What would it take for me to get acccess to your 'super-secret WoW protocol wiki'? :P But I have thought about it, but I love coding, so I could put something together that'll do that same an that I could change around if needed, I use other peoples scripts sometimes if I know how they work. But without knowing how they work, or what function an whatnot is where makes it kinda hard to update/add things onto it.

But yea.. I have gotten nowhere with the YIM Protocols.. Stupid thing!


I did however find these some help on the matter just not alot since I can't really make since of it..
         The other parts had nothing to do with the actual protocol it's self really, only these ones had good information.

Yahoo! Messenger Protocol Tutorial - Part 7

Yahoo! Messenger Protocol Tutorial - Part 8

Yahoo! Messenger Protocol Tutorial - Part 9

Yahoo! Messenger Protocol Tutorial - Part 10

Apparently it all came from here Yahoo Coders Cook Book.


I think I understand it sorta.. Not sure though will have to try tomorrow going to bed now..
April 28, 2006, 3:37 AM
warz
http://www.venkydude.com/articles/yahoo.htm

That site looked fine. Should be all you need. Well, that and a few packet logs of your own.
April 28, 2006, 7:26 PM
Jaquio
scs.yahoo.com = not connecting. So therefore I can't do anything, the way the messenger connects is how I am trying to do it. Here is a packet log for the connection up until buddy list which I am not showing.

[code]
1  71.124.70.4:1340  216.155.193.141:5050  20  Send 
0000  59 4D 53 47 00 0E 00 00 00 00 00 4C 00 00 00 00    YMSG.......L....
0010  00 00 00 00                                        ....

2  216.155.193.141:5050  71.124.70.4:1340  20  Recv 
0000  59 4D 53 47 00 0E 00 00 00 00 00 4C 00 00 00 01    YMSG.......L....
0010  00 00 00 00                                        ....

3  71.124.70.4:1340  216.155.193.141:5050  34  Send 
0000  59 4D 53 47 00 0E 00 00 00 0E 00 57 00 00 00 00    YMSG.......W....
0010  00 00 00 00 31 C0 80 62 6A 6D 6F 72 65 74 6F 6E    ....1..bjmoreton
0020  C0 80                                              ..

4  216.155.193.141:5050  71.124.70.4:1340  118  Recv 
0000  59 4D 53 47 00 00 00 00 00 62 00 57 00 00 00 01    YMSG.....b.W....
0010  86 4B 4A A0 31 C0 80 62 6A 6D 6F 72 65 74 6F 6E    .KJ.1..bjmoreton
0020  C0 80 39 34 C0 80 73 26 65 2B 31 2F 79 2B 6B 25    ..94..s&e+1/y+k%
0030  28 75 2D 61 25 35 2B 7A 25 31 7C 62 2F 32 2D 68    (u-a%5+z%1|b/2-h
0040  26 28 71 5E 61 7C 35 2B 31 5E 70 5E 79 2F 6A 26    &(q^a|5+1^p^y/j&
0050  28 6D 5E 78 7C 74 26 74 26 6D 2B 28 65 2A 28 6F    (m^x|t&t&m+(e*(o
0060  7C 34 26 65 2F 66 2D 65 29 29 29 29 29 C0 80 31    |4&e/f-e)))))..1
0070  33 C0 80 32 C0 80                                  3..2..

5  71.124.70.4:1341  209.73.177.115:443  78  Send 
0000  80 4C 01 03 00 00 33 00 00 00 10 00 00 04 00 00    .L....3.........
0010  05 00 00 0A 01 00 80 07 00 C0 03 00 80 00 00 09    ................
0020  06 00 40 00 00 64 00 00 62 00 00 03 00 00 06 02    ..@..d..b.......
0030  00 80 04 00 80 00 00 13 00 00 12 00 00 63 52 BE    .............cR.
0040  BB 83 1A 2E 7C AB C5 A0 46 6C 8E E7 3B E5          ....|...Fl..;.

6  209.73.177.115:443  71.124.70.4:1341  856  Recv 
0000  16 03 00 00 4A 02 00 00 46 03 00 44 52 5A 7F 89    ....J...F..DRZ..
0010  B6 6D D3 50 AD FF A7 DD 02 E4 6A AE 9B CD F3 0B    .m.P......j.....
0020  18 DD 69 A6 A9 D6 09 FF 79 41 57 20 BF 2A 05 8B    ..i.....yAW .*..
0030  6A EF 08 80 7C 60 42 97 33 82 0E 79 75 28 FB E1    j...|`B.3..yu(..
0040  08 8E 51 20 60 69 77 2B B0 62 F6 14 00 04 00 16    ..Q `iw+.b......
0050  03 00 02 FB 0B 00 02 F7 00 02 F4 00 02 F1 30 82    ..............0.
0060  02 ED 30 82 02 56 A0 03 02 01 02 02 03 05 A0 4C    ..0..V.........L
0070  30 0D 06 09 2A 86 48 86 F7 0D 01 01 05 05 00 30    0...*.H........0
0080  4E 31 0B 30 09 06 03 55 04 06 13 02 55 53 31 10    N1.0...U....US1.
0090  30 0E 06 03 55 04 0A 13 07 45 71 75 69 66 61 78    0...U....Equifax
00A0  31 2D 30 2B 06 03 55 04 0B 13 24 45 71 75 69 66    1-0+..U...$Equif
00B0  61 78 20 53 65 63 75 72 65 20 43 65 72 74 69 66    ax Secure Certif
00C0  69 63 61 74 65 20 41 75 74 68 6F 72 69 74 79 30    icate Authority0
00D0  1E 17 0D 30 36 30 31 30 34 31 37 30 39 30 36 5A    ...060104170906Z
00E0  17 0D 31 31 30 31 30 34 31 37 30 39 30 36 5A 30    ..110104170906Z0
00F0  78 31 0B 30 09 06 03 55 04 06 13 02 55 53 31 13    x1.0...U....US1.
0100  30 11 06 03 55 04 08 13 0A 43 61 6C 69 66 6F 72    0...U....Califor
0110  6E 69 61 31 14 30 12 06 03 55 04 07 13 0B 53 61    nia1.0...U....Sa
0120  6E 74 61 20 43 6C 61 72 61 31 14 30 12 06 03 55    nta Clara1.0...U
0130  04 0A 14 0B 59 61 68 6F 6F 21 20 49 6E 63 2E 31    ....Yahoo! Inc.1
0140  0E 30 0C 06 03 55 04 0B 13 05 59 61 68 6F 6F 31    .0...U....Yahoo1
0150  18 30 16 06 03 55 04 03 13 0F 6C 6F 67 69 6E 2E    .0...U....login.
0160  79 61 68 6F 6F 2E 63 6F 6D 30 81 9F 30 0D 06 09    yahoo.com0..0...
0170  2A 86 48 86 F7 0D 01 01 01 05 00 03 81 8D 00 30    *.H............0
0180  81 89 02 81 81 00 B5 6C 4F EE EF 1B 04 5D BE 70    .......lO....].p
0190  4A D8 55 1D 8A 77 0D C1 45 00 F5 3B 1A 10 DD D7    J.U..w..E..;....
01A0  F7 BB 7A 65 54 7F 60 D2 16 BB BD 12 A5 78 78 D6    ..zeT.`......xx.
01B0  B3 50 4E BA 17 48 27 7A 22 6F 2A 7C 1D A2 36 22    .PN..H'z"o*|..6"
01C0  D8 59 A2 AE 3A 0B D4 D2 1B 8A 0E 5A 89 A9 E4 9A    .Y..:......Z....
01D0  FF DB 3F 04 E2 9B 75 C1 8D C5 8C 05 A1 F3 B5 92    ..?...u.........
01E0  5E A1 44 49 19 E4 90 B4 E9 EF E4 5D B2 20 6D F9    ^.DI.......]. m.
01F0  23 76 B8 B2 D4 AF A3 06 F5 9E 03 8F B8 82 05 21    #v.............!
0200  11 25 44 3A 80 05 02 03 01 00 01 A3 81 AE 30 81    .%D:..........0.
0210  AB 30 0E 06 03 55 1D 0F 01 01 FF 04 04 03 02 04    .0...U..........
0220  F0 30 1D 06 03 55 1D 0E 04 16 04 14 A0 1E 6E 0C    .0...U........n.
0230  9B 6E 6A EB D2 AE 5A 4A 18 FF 0E 93 46 1A D6 32    .nj...ZJ....F..2
0240  30 3A 06 03 55 1D 1F 04 33 30 31 30 2F A0 2D A0    0:..U...3010/.-.
0250  2B 86 29 68 74 74 70 3A 2F 2F 63 72 6C 2E 67 65    +.)http://crl.ge
0260  6F 74 72 75 73 74 2E 63 6F 6D 2F 63 72 6C 73 2F    otrust.com/crls/
0270  73 65 63 75 72 65 63 61 2E 63 72 6C 30 1F 06 03    secureca.crl0...
0280  55 1D 23 04 18 30 16 80 14 48 E6 68 F9 2B D2 B2    U.#..0...H.h.+..
0290  95 D7 47 D8 23 20 10 4F 33 98 90 9F D4 30 1D 06    ..G.# .O3....0..
02A0  03 55 1D 25 04 16 30 14 06 08 2B 06 01 05 05 07    .U.%..0...+.....
02B0  03 01 06 08 2B 06 01 05 05 07 03 02 30 0D 06 09    ....+.......0...
02C0  2A 86 48 86 F7 0D 01 01 05 05 00 03 81 81 00 50    *.H............P
02D0  25 65 10 43 E1 74 83 2F 8F 9C 9E DC 74 64 4E 71    %e.C.t./....tdNq
02E0  27 4E 2A 6E 4A 12 7B 4C 41 2E 61 4A 11 0B 41 A6    'N*nJ.{LA.aJ..A.
02F0  B1 52 CB 13 76 B6 45 E4 8D D4 00 9A 3B 02 C7 82    .R..v.E.....;...
0300  29 01 A3 EE 7D F7 B9 02 88 9D 3E C3 1C E6 3D D3    )...}.....>...=.
0310  90 FC 9C 56 DB 19 9D AB A8 03 80 7D C4 E2 C4 09    ...V.......}....
0320  33 9E 58 5B 77 37 89 59 A3 86 8E A1 DF B3 BB 02    3.X[w7.Y........
0330  ED 21 62 FB BA C2 BA E8 D4 8F 66 C1 A5 5F AD F9    .!b.......f.._..
0340  3F CF 22 9B 17 57 A0 CA 28 C6 76 03 A4 C4 E7 16    ?."..W..(.v.....
0350  03 00 00 04 0E 00 00 00                            ........

7  71.124.70.4:1341  209.73.177.115:443  204  Send 
0000  16 03 00 00 84 10 00 00 80 7D 7A 5E E2 7D 20 F6    .........}z^.} .
0010  4C A2 3A 8C A3 89 F9 54 E5 0A CA CA 35 0C 77 7A    L.:....T....5.wz
0020  C5 8E B7 EA F4 75 52 50 A7 DC 65 68 4F 75 D8 C4    .....uRP..ehOu..
0030  24 48 DD 06 62 25 45 08 A5 EE 24 55 D8 64 0A 3A    $H..b%E...$U.d.:
0040  AB F9 39 0C 62 6B 56 E7 29 82 85 E9 31 34 CE E6    ..9.bkV.)...14..
0050  CE 9C FE 0B A3 5F 00 07 02 FF 33 0A CA 74 8F 11    ....._....3..t..
0060  D8 B1 41 32 E7 5D D8 D6 32 C2 8D 1A E8 A4 1A 7D    ..A2.]..2......}
0070  2D EC 9D FC 84 97 56 01 A1 6B FA F8 05 A3 E4 94    -.....V..k......
0080  D2 76 81 E5 C2 E5 FD 56 46 14 03 00 00 01 01 16    .v.....VF.......
0090  03 00 00 38 92 70 D3 37 E8 2E B3 69 E3 4C 71 F5    ...8.p.7...i.Lq.
00A0  84 32 8F E0 8E E3 B0 30 D9 6E 0A E9 09 37 E3 6D    .2.....0.n...7.m
00B0  FA 73 28 08 00 9D 85 FC 5B 7E DC 91 8B CD 70 CD    .s(.....[~....p.
00C0  39 66 88 A3 A9 94 52 C3 41 A0 8D 13                9f....R.A...

8  209.73.177.115:443  71.124.70.4:1341  67  Recv 
0000  14 03 00 00 01 01 16 03 00 00 38 E8 38 46 D3 64    ..........8.8F.d
0010  2D 5E 9A A4 EA 62 CA B8 01 5E 7C F8 96 99 49 A7    -^...b...^|...I.
0020  78 EB 01 F3 6D C4 BB 82 5D E8 E8 76 77 01 A4 1C    x...m...]..vw...
0030  FD 30 7F 26 02 C5 1D 18 C4 59 D3 80 05 81 B6 84    .0.&.....Y......
0040  B7 48 4F                                          .HO

9  71.124.70.4:1341  209.73.177.115:443  238  Send 
0000  17 03 00 00 E9 C9 FD AD 9F 99 2D 7C D6 F6 0F DF    ..........-|....
0010  8C 1D 9C C3 9E 8B C7 64 B3 AF 80 52 43 8D 56 69    .......d...RC.Vi
0020  B3 45 1D D4 FA 51 45 6E 51 C8 BB AB F3 0C 54 DB    .E...QEnQ.....T.
0030  61 6B 12 7C 4D 33 84 F6 74 42 07 A0 96 48 68 80    ak.|M3..tB...Hh.
0040  1B 13 11 65 D2 70 EC F0 42 ED 5A 43 75 44 D8 31    ...e.p..B.ZCuD.1
0050  5D 72 B1 73 2A CC 01 D8 2D 35 33 52 B3 F3 50 91    ]r.s*...-53R..P.
0060  9E 4B 8A 6B E0 59 26 DD 8E 55 8B 62 E5 90 2E 90    .K.k.Y&..U.b....
0070  A6 0B DE B9 8A EC E6 72 F1 39 6E BE 09 EA 78 1B    .......r.9n...x.
0080  6A 6F E9 BA 49 A6 F1 36 A0 99 A7 66 30 8C 41 82    jo..I..6...f0.A.
0090  7B FC 1F A1 B2 DE 3F 1C 33 5D F0 09 13 26 A4 02    {.....?.3]...&..
00A0  25 09 22 E7 08 5B 3F AF 7A 33 01 8B F9 00 79 16    %."..[?.z3....y.
00B0  DC 54 70 C7 CA 92 F2 AC 27 F0 95 31 1E 77 CD E6    .Tp.....'..1.w..
00C0  40 2C 54 F0 5B 24 51 5A B2 85 F7 3E 26 3F F4 67    @,T.[$QZ...>&?.g
00D0  0C 79 93 A5 4D 4D B4 ED F8 A0 9A 2D 9D 9C 1A 3C    .y..MM.....-...<
00E0  4C F0 05 5B 03 69 94 3D 4C A1 56 46 D7 75          L..[.i.=L.VF.u

10  209.73.177.115:443  71.124.70.4:1341  1205  Recv 
0000  17 03 00 04 99 7E E7 44 CF F8 33 A9 EE B9 1E 33    .....~.D..3....3
0010  DE B9 7D FA 68 37 AF 43 48 5A 59 6F C5 A5 04 CF    ..}.h7.CHZYo....
0020  0E D7 3A 85 81 EB 81 71 E6 3B 06 64 96 D7 A1 2D    ..:....q.;.d...-
0030  9C 02 F0 CF 1B 74 FD 51 E0 5D B1 86 93 C7 90 4B    .....t.Q.].....K
0040  59 EB B7 A9 21 18 CB 6C 01 BE 91 75 8D E4 65 54    Y...!..l...u..eT
0050  44 7A 65 EF 0D 9D 9C 29 DA A4 72 10 B7 21 38 E8    Dze....)..r..!8.
0060  CE DB C0 F8 B7 4E 71 A1 F1 AB 06 61 A3 3E 0B 4F    .....Nq....a.>.O
0070  9F 45 B0 C2 96 FF 6A 9F F4 A7 21 10 A3 E2 91 01    .E....j...!.....
0080  1F 1A 77 74 4F 86 DF 66 E4 68 39 6B 72 9C 88 11    ..wtO..f.h9kr...
0090  8B 51 46 C7 0E A3 68 D8 2C 65 C0 B0 C8 4F AD 06    .QF...h.,e...O..
00A0  BC 41 08 FD E3 56 98 E4 BA F7 A0 18 45 A8 11 91    .A...V......E...
00B0  97 10 9F D6 04 81 05 DB EA 2C BF D1 B2 22 A8 B4    .........,..."..
00C0  2C 2C F1 50 8B D7 D2 8A B6 BF 4D 9B 83 EF 4C 71    ,,.P......M...Lq
00D0  1D 7E A0 08 6D 83 E2 23 DC B5 71 EC 72 2C 58 A1    .~..m..#..q.r,X.
00E0  D5 BC FA 51 19 E3 48 21 B9 90 2D B7 C6 F3 92 A7    ...Q..H!..-.....
00F0  AD D9 55 9A 1C 2C B0 D9 B1 F4 87 C8 5F DC B1 B8    ..U..,......_...
0100  CC 95 BC EE F2 7D 4F B8 3C 37 AA 25 1F FE F0 93    .....}O.<7.%....
0110  53 24 02 42 37 1F 8E F6 91 FC E9 13 48 57 4C 24    S$.B7.......HWL$
0120  4D 19 84 D5 CC 4B C5 59 EC 83 96 62 73 47 37 F8    M....K.Y...bsG7.
0130  FA 19 9C FC D0 EC 53 C0 CF F4 80 85 50 7C 8C AE    ......S.....P|..
0140  B5 B5 5A 08 3E C0 25 01 92 62 B0 9E 84 DC 2E F9    ..Z.>.%..b......
0150  DF 34 41 23 20 62 43 86 BD 8D 63 00 03 9D 49 1F    .4A# bC...c...I.
0160  B3 5E 7A 9C B5 8A 4D 1C F2 BF 5D D3 B5 31 EF 06    .^z...M...]..1..
0170  63 6E 02 DE 6F 5E 83 86 FA D2 96 2E 72 29 C3 75    cn..o^......r).u
0180  70 2F 15 03 F6 CE 47 62 B5 03 A0 E9 08 BD 5D 73    p/....Gb......]s
0190  7E 4D 17 41 D0 0A 24 89 FD A5 52 6A 9D F1 11 91    ~M.A..$...Rj....
01A0  82 E8 A5 5C C6 95 50 DD F8 B3 20 B0 58 0D 45 B9    ...\..P... .X.E.
01B0  FD D9 CC C9 26 48 E3 60 46 3F D8 B7 95 61 52 ED    ....&H.`F?...aR.
01C0  6E 8B 33 2F EE 3B E1 28 A3 BD F1 D0 29 07 1B C9    n.3/.;.(....)...
01D0  81 EA 05 3E DF CF 65 8E 4A 21 DE EE 17 15 0F BB    ...>..e.J!......
01E0  65 AF 6B EA 25 97 34 42 1A 97 A1 45 12 03 C0 0A    e.k.%.4B...E....
01F0  31 1C E7 7E 14 57 9D FA 03 D5 02 BA D6 93 ED BF    1..~.W..........
0200  C9 14 F6 F7 58 A4 CF 36 50 A4 9D 4C 16 16 05 39    ....X..6P..L...9
0210  36 6C 2C BB 77 B6 12 1B 5F F4 7C C7 86 C0 89 8A    6l,.w..._.|.....
0220  5E E1 18 6E 98 D1 BE 46 16 94 09 F5 6B 94 06 64    ^..n...F....k..d
0230  24 79 FC 4F 73 5F 88 DE 28 81 44 E5 AB ED 59 AD    $y.Os_..(.D...Y.
0240  A2 B3 76 A2 9D 81 EC 06 69 A7 E2 04 7F EE 6A AD    ..v.....i.....j.
0250  18 83 15 93 4A D8 F8 82 91 2F 22 D7 99 22 44 1D    ....J..../".."D.
0260  9F 7E DF 34 F2 A1 19 B4 38 C8 1A D2 F4 15 D9 55    .~.4....8......U
0270  90 74 8E 2A 2F B7 63 F9 51 4C 0A 23 BF 80 54 72    .t.*/.c.QL.#..Tr
0280  CE 79 6A 1D B7 EE 7C C9 DA 15 E7 24 6B 4A 6F 59    .yj...|....$kJoY
0290  E9 19 D2 EC 15 60 7D 4D 73 EF 11 70 BF E4 78 10    .....`}Ms..p..x.
02A0  D9 A3 8F F7 41 20 8C 81 B6 22 10 4C 24 1B F4 38    ....A ...".L$..8
02B0  F5 68 33 E4 76 9A 92 24 F7 67 2F E4 9A 14 7E 53    .h3.v..$.g/...~S
02C0  62 18 D0 6B 60 C0 0E 1B 56 57 59 EF 9F A6 32 9D    b..k`...VWY...2.
02D0  A2 24 4C 19 31 DD 1D 6C 46 E0 62 7A 47 1E 9F 00    .$L.1..lF.bzG...
02E0  1F 72 AD EC E6 41 53 D2 50 FB 46 57 5C 7F BD 1C    .r...AS.P.FW\...
02F0  9B E3 78 0B A4 A2 58 1B 14 3F BB A6 40 52 3E 9D    ..x...X..?..@R>.
0300  32 7A 37 FC 1D A2 C9 AF 41 D2 A2 F0 A8 EE DE C1    2z7.....A.......
0310  78 DD 31 AB D6 F4 90 E4 A2 75 63 2A F8 1A 24 6E    x.1......uc*..$n
0320  FC 6A 8C F2 08 53 F7 28 1B A2 91 BC 96 78 F6 2F    .j...S.(.....x./
0330  F7 F5 4C AE 1D E9 B8 CE CE CC C2 50 9F 28 7A 3D    ..L........P.(z=
0340  72 1A A4 79 C4 E9 16 12 DD 61 7B 87 7D 62 34 29    r..y.....a{.}b4)
0350  1B B5 26 C4 43 17 B9 C5 DA 6C 93 3C 06 EA 37 60    ..&.C....l.<..7`
0360  C8 64 8E 03 13 24 CA 22 C7 CE 1C 78 18 B5 6A C0    .d...$."...x..j.
0370  84 EF 41 1C 84 8E 41 F8 06 3F FF A9 61 6F 77 80    ..A...A..?..aow.
0380  F3 40 B9 33 5E 02 28 18 F8 B1 9E 34 57 02 9D 98    .@.3^.(....4W...
0390  D7 56 59 93 C8 B4 DA AA C1 AC 3F 19 E6 69 F5 A0    .VY.......?..i..
03A0  32 83 1D 7A A6 70 7E 85 E7 B6 38 98 25 37 DF 62    2..z.p~...8.%7.b
03B0  D6 68 49 D7 F6 77 10 58 B3 92 38 82 B4 89 9D FF    .hI..w.X..8.....
03C0  2F 52 3B CD E1 42 FA 76 64 95 37 14 FE B1 5F E1    /R;..B.vd.7..._.
03D0  71 5C 49 F0 BA 94 63 20 0E 5E 6B 61 4F 7C B7 C5    q\I...c .^kaO|..
03E0  80 37 61 D3 3F 97 F2 51 3E 8C 1F 7C 93 D6 B3 AA    .7a.?..Q>..|....
03F0  28 E9 5D 2F E8 87 EF F4 82 79 8B 7D 5D A0 FE 00    (.]/.....y.}]...
0400  C6 8C CF 10 A6 3A 1B 24 FD EF A3 49 DA 05 A6 66    .....:.$...I...f
0410  B1 26 D5 6E CA 50 83 34 03 B1 70 BB B4 DB 62 2B    .&.n.P.4..p...b+
0420  07 06 B7 15 58 4A 6D 98 CE 57 14 A8 A5 42 D2 AE    ....XJm..W...B..
0430  6F EF C2 1E 82 90 5A A8 48 9F 7C 93 AC FD 67 C1    o.....Z.H.|...g.
0440  BA AB 06 96 FD 49 0B A3 B3 D9 98 7C 25 0A F1 96    .....I.....|%...
0450  C4 35 F0 07 AF 60 48 B2 22 2D 92 D3 1D F8 D8 54    .5...`H."-.....T
0460  1E 39 EB 93 4A 69 FB 4E 31 13 A8 38 B5 FE 45 9A    .9..Ji.N1..8..E.
0470  96 CA E4 F3 06 A7 CF E7 AB 34 4C EF 37 9F 4B 6E    .........4L.7.Kn
0480  A2 8A A9 1D 1D F5 6F 80 31 CA 4C 78 B7 F3 39 74    ......o.1.Lx..9t
0490  26 7C 3A B4 4C 9B 15 31 B6 31 FE 05 E1 9F 15 03    &|:.L..1.1......
04A0  00 00 12 57 D2 A0 94 50 92 15 BE F9 EB 14 0D 72    ...W...P.......r
04B0  FA C0 43 72 04                                    ..Cr.
[/code]

If anyone cares to tell what is going on there.. It would be a big help to me.. >_<
April 28, 2006, 8:24 PM
JoeTheOdd
If you want BnetDocs style documentation, here you go:

[tt]NSTD Data Types:
YSTRING - Raw string followed by C0 80

Packet Header:
(DWORD)  Client Type      (Constant: 59 4D 53 47)
(WORD)    Protocol Version  (Constant: 00 0B)
(WORD)    NULL              (Constant: 00 00)
(WORD)    Message Length    (Variable: Message length minus header length)

YIM_AUTH_INFO
(BYTE)    NULL              (Constant: 00)
(BYTE)    Challenge Command (Constant: 'W')
(DWORD)  Identifier        (Constant: 00 00 00 00)
(BYTE)    Logging In        (Constant: 30)
(YSTRING) UNKNOWN          (Constant: "1")
(YSTRING) Yahoo Username    (Variable: duh)[/tt]

General rules of thumb:
A TAYSTE is a 2-bit unsigned little endian integer (one fourth byte)
A NYBBLE is a 4-bit unsigned little endian integer (one half byte)
A BYTE is an 8-bit unsigned little endian integer (one byte)
A WORD is a 16-bit unsigned little endian integer (two bytes)
A TWORD is a 20-bit unsigned little endian integer (three bytes)
A DWORD is a 32-bit unsigned little endian integer (four bytes)
A QWORD is a 64-bit unsigned little endian integer (eight bytes)

Of course, the C-types corresponding with these names depend on the processor architecture. A WORD will be 16-bit on a 16-bit system (the Windows 3.1 days), 32 on a 32 bit system (most common), and 64 on a 64-bit system (newer processors).
April 29, 2006, 4:51 AM
Kp
[quote author=J link=topic=14857.msg151495#msg151495 date=1146286290]Of course, the C-types corresponding with these names depend on the processor architecture. A WORD will be 16-bit on a 16-bit system (the Windows 3.1 days), 32 on a 32 bit system (most common), and 64 on a 64-bit system (newer processors).[/quote]

Which is why you should always #include <inttypes.h> and use the more appropriately named {,u}int{8,16,32,64}_t types. :)  Whoever thought defining WORD to a set size that would never be changed really wasn't thinking very far ahead...
April 29, 2006, 4:01 PM
Jaquio
Alright, I figured it out some what.. Kinda to what Joe said, this is the format.

4 Bytes - Header(Always YMSG)
2 Bytes - Version(00 0E currently)
2 Bytes - Uknown(Always 00 00)
2 Bytes - Data Length
2 Bytes - Service Type
4 Bytes - Status
4 Bytes - Session ID

Anything after that is data being the length of the 2 byte data length.


What I am trying to figure out.. Is how to tell if there was a failed logon.. I have packet logged myself doing both.. A good logon an a failed logon(Using the wrong password). But nothing in the packets seem to change.. An I get nothing back after that packet.. Here they are maybe someone else can help?

Bad Logons
[code]
//Bad Logon(Failed Password)
00000014  59 4d 53 47 00 00 00 00  00 62 00 57 00 00 00 01 YMSG.... .b.W....
00000024  fe 5f da 04 31 c0 80 62  6a 6d 6f 72 65 74 6f 6e ._..1..b jmoreton
00000034  c0 80 39 34 c0 80 66 5e  31 2f 79 2b 34 25 70 25 ..94..f^ 1/y+4%p%
00000044  74 2f 38 5e 34 2b 34 25  74 25 28 38 2b 74 2b 66 t/8^4+4% t%(8+t+f
00000054  5e 31 2d 33 26 69 2d 67  2f 32 5e 79 2b 6e 26 7a ^1-3&i-g /2^y+n&z
00000064  2a 79 2b 6b 2f 72 7c 28  31 2f 34 2d 7a 26 28 66 *y+k/r|( 1/4-z&(f
00000074  26 28 6c 2b 75 2f 6a 7c  66 29 29 29 29 c0 80 31 &(l+u/j| f))))..1
00000084  33 c0 80 32 c0 80                                3..2..

//Bad Logon(Failed Password)
00000014  59 4d 53 47 00 00 00 00  00 68 00 57 00 00 00 01 YMSG.... .h.W....
00000024  c6 45 cc 31 31 c0 80 62  6a 6d 6f 72 65 74 6f 6e .E.11..b jmoreton
00000034  c0 80 39 34 c0 80 34 26  31 25 79 7c 61 26 28 64 ..94..4& 1%y|a&(d
00000044  2d 68 29 26 61 25 79 2b  67 25 28 62 2a 68 2a 69 -h)&a%y+ g%(b*h*i
00000054  7c 63 2f 77 29 2b 70 2b  6b 2f 28 74 5e 28 6f 7c |c/w)+p+ k/(t^(o|
00000064  28 79 5e 28 63 7c 34 26  33 7c 75 2f 6a 7c 61 25 (y^(c|4& 3|u/j|a%
00000074  79 29 2d 72 2b 77 7c 28  31 2d 62 5e 66 2a 65 29 y)-r+w|( 1-b^f*e)
00000084  29 29 29 c0 80 31 33 c0  80 32 c0 80             )))..13. .2..
[/code]

Good Logons
[code]
//Good Logon
00000014  59 4d 53 47 00 00 00 00  00 5e 00 57 00 00 00 01 YMSG.... .^.W....
00000024  8c 53 81 80 31 c0 80 62  6a 6d 6f 72 65 74 6f 6e .S..1..b jmoreton
00000034  c0 80 39 34 c0 80 67 2d  65 26 6b 2b 32 5e 28 38 ..94..g- e&k+2^(8
00000044  2d 67 2a 69 25 6a 2d 75  2f 79 2b 28 6b 29 2a 7a -g*i%j-u /y+(k)*z
00000054  2f 62 7c 6e 25 28 73 26  6f 26 35 5e 35 26 38 2b /b|n%(s& o&5^5&8+
00000064  6c 29 2f 77 7c 65 7c 72  5e 72 7c 61 2a 31 26 7a l)/w|e|r ^r|a*1&z
00000074  26 77 25 68 26 70 2d 35  29 c0 80 31 33 c0 80 32 &w%h&p-5 )..13..2
00000084  c0 80                                            ..

//Good Logon
00000014  59 4d 53 47 00 00 00 00  00 60 00 57 00 00 00 01 YMSG.... .`.W....
00000024  c6 4a 54 6c 31 c0 80 62  6a 6d 6f 72 65 74 6f 6e .JTl1..b jmoreton
00000034  c0 80 39 34 c0 80 65 25  6b 25 6f 26 38 26 35 2d ..94..e% k%o&8&5-
00000044  34 2a 38 2f 6f 7c 79 25  63 2d 62 25 70 26 6d 26 4*8/o|y% c-b%p&m&
00000054  34 2f 69 2b 31 26 75 2a  6e 2a 72 7c 28 71 2f 68 4/i+1&u* n*r|(q/h
00000064  5e 64 25 71 2b 64 7c 6a  25 70 2f 28 6b 5e 79 26 ^d%q+d|j %p/(k^y&
00000074  32 26 68 2a 69 2a 28 78  29 29 29 c0 80 31 33 c0 2&h*i*(x )))..13.
00000084  80 32 c0 80                                      .2..
[/code]

Any idea why their pretty much the same?
May 1, 2006, 5:04 PM
raylu
Correct me if I'm being retarded...but version seems to be 00 00, not 00 0E...
May 2, 2006, 3:01 AM
Jaquio
[quote author=raylu link=topic=14857.msg151769#msg151769 date=1146538868]
Correct me if I'm being retarded...but version seems to be 00 00, not 00 0E...
[/quote]

For some reasons.. On client-sent packets you have to put 0x000E or it don't go through. On server-sent packets, they usually don't include the version for some reason. It's not always 0x0000 on server-sent though, sometimes it is 0x000E.
May 2, 2006, 4:20 AM
raylu
Hm...the first (significant) difference I see is at byte 39...

It looks something like a BNCS checksum to me...there are no more packets after this?
May 3, 2006, 4:03 AM
Jaquio
Erm, for which are you talking about?

The good logons or the bad? If the bad then no, that is the last packet recv'd. As for the good, the above packet log contains everything up until yahoo lists the buddy list.
May 3, 2006, 4:57 AM

Search