Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Archangel. on March 17, 2008, 05:46 PM

Title: [Resolved] Help: 0x51 C->S. (Rob, MyndFyre and HDX thanks your time)
Post by: Archangel. on March 17, 2008, 05:46 PM

0000  ff 51 55 00 0d c3 7c 00 01 02 0f 01 cf 15 bb 92   .QU...|.........
0010  01 00 00 00 00 00 00 00 0d 00 00 00 01 00 00 00   ................
0020  7f 8c 02 00 00 00 00 00 a6 2a 49 51 52 d3 0f 19   .........*IQR...
0030  94 17 c1 65 fb e6 db 6b 76 66 9c 1e f9 8c 5a e0   ...e..;kvf....Z.
0040  0d bc f2 3d d1 e2 51 44 33 fd 4d b9 00 55 6e 6b   ...=..QD3.M..Unk
0050  6e 6f 77 6e 00                                    nown.


Anyone see something weird?


0000  ff 51 55 00 0d c3 7c 00 01 02 0f 01 cf 15 bb 92   .QU...|.........
0010  01 00 00 00 00 00 00 00 0d 00 00 00 01 00 00 00   ................
0020  7f 8c 02 00 00 00 00 00 a6 2a 49 51 52 d3 0f 19   .........*IQR...
0030  94 17 c1 65 fb e6 db 6b 76 66 9c 1e f9 8c 5a e0   ...e..;kvf....Z.
0040  0d bc f2 3d d1 e2 51 44 33 fd 4d b9 00 55 6e 6b   ...=..QD3.M..Unk
0050  6e 6f 77 6e 00                                    nown.


Packet H: FF 51 55 00
Client T: 0d c3 7c 00
Version: 01 02 0f 01
Checksum: cf 15 bb 92
# Keys: 01 00 00 00
Spawn: 00 00 00 00
CdKey Len: 0d 00 00 00
Key Product: 01 00 00 00
Key Public: 7f 8c 02 00
Int32: 00 00 00 00
KeyHash[5]: a6 2a 49 51 52 d3 0f 19 94 17 c1 65 fb e6 db 6b 76 66 9c 1e
Digest: f9 8c 5a e0 0d bc f2 3d d1 e2 51 44 33 fd 4d b9 00
Owned: 55 6e 6b 6e 6f 77 6e 00

Edit: Sorry, i forgot to use modify.

[MyndFyre edit: merged posts]
Title: Re: Help: 0x51 C-> S.
Post by: Hdx on March 17, 2008, 06:55 PM
From a quick glance, everything looks properly formatted.
It might help is you posted the result.
Title: Re: Help: 0x51 C-> S.
Post by: MyndFyre on March 17, 2008, 06:56 PM
Quote from: Hdx on March 17, 2008, 06:55 PM
From a quick glance, everything looks properly formatted.
It might help is you posted the result.

He's getting back invalid version, 0x101. 
Title: Re: Help: 0x51 C-> S.
Post by: Hdx on March 17, 2008, 07:31 PM
Ah, please post your S->C 0x50, i'll run the values through JBLS see what I get.
Also, it does make a diff, is this sc or bw?
Title: Re: Help: 0x51 C-> S.
Post by: Archangel. on March 17, 2008, 07:41 PM
C->S 0x50:


0000  ff 50 33 00 00 00 00 00 36 38 58 49 50 58 45 53   .P3.....68XIPXES
0010  d1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0020  00 00 00 00 00 00 00 00 4d 45 58 00 4d 3f 78 69   ........MEX.M?xi
0030  63 6f 00                                          co.                                           


S->C 0x50:


0000  ff 50 3e 00 00 00 00 00 f4 80 07 9e 3f e6 2e 00   .P>.........?...
0010  00 60 95 d7 72 fc c6 01 6c 6f 63 6b 64 6f 77 6e   .`..r...lockdown
0020  2d 49 58 38 36 2d 31 32 2e 6d 70 71 00 a0 41 1b   -IX86-12.mpq..A.
0030  8d 50 4b 7f 16 88 ad 69 c1 b4 2c 49 57 00         .PK....i..,IW.


C->S 0x51:


0000  ff 51 55 00 0f 8b 5b 01 01 02 0f 01 c4 30 13 1f   .QU...[......0..
0010  01 00 00 00 00 00 00 00 0d 00 00 00 01 00 00 00   ................
0020  9f 8a 02 00 00 00 00 00 09 4d 64 a1 d3 76 35 b6   .........Md..v5.
0030  3c fa e9 10 1a 39 87 fa 1a a6 57 a6 a6 39 d7 0f   <....9....W..9..
0040  b5 9c 4e cb 2e 7d af 8a cc 39 d7 dc 00 55 6e 6b   ..N..}...9...Unk
0050  6e 6f 77 6e 00                                    nown.


S->C 0x51:

0000  ff 51 09 00 01 01 00 00 00                        .Q.......



Have been all day long trying lol... dont know wtf... might be something stupid..
Title: Re: Help: 0x51 C->S.
Post by: Hdx on March 17, 2008, 08:07 PM
With those values your results should be:
Ver: 0x010f0201
Che: 0x0f00c978
Str: 0a 64 2e a3 86 4f 64 43 56 da 50 5a fa fc 75 3c         .d...OdCV.PZ..u<

How are you preforming the check revision?

On an unrelated note, Why does "Mexico" have a '?' in it?
Title: Re: Help: 0x51 C->S.
Post by: Archangel. on March 17, 2008, 08:31 PM
Quote from: Hdx on March 17, 2008, 08:07 PM
With those values your results should be:
Ver: 0x010f0201
Che: 0x0f00c978
Str: 0a 64 2e a3 86 4f 64 43 56 da 50 5a fa fc 75 3c         .d...OdCV.PZ..u<

How are you preforming the check revision?

On an unrelated note, Why does "Mexico" have a '?' in it?

mm i dont really know i am using SystemGlobalization: RegionInfo, but that shouldnt affect the response from 0x51, also i am using MBNCSUtil (By Myndfyre) and using DoLockdownCheckRevision, the weird thing is that i compared the values from the crev and it matched perfectly, i dont really know what it is :(.
Title: Re: Help: 0x51 C->S.
Post by: Hdx on March 17, 2008, 08:43 PM
They matched my values, or the ones from your log?
If they matched my values then you're converting them improperly when inserting them into your buffer I would presume. Which is probably why Mexico has a ? in it because I *think* the e has an accent on it. Anyways, as I do not program in .net languages, I'll have to turn this over to Mynd

Thought that doesn't explain why your checksum is also wrong.
Title: Re: Help: 0x51 C->S.
Post by: Archangel. on March 17, 2008, 08:58 PM
Quote from: Hdx on March 17, 2008, 08:43 PM
They matched my values, or the ones from your log?
If they matched my values then you're converting them improperly when inserting them into your buffer I would presume. Which is probably why Mexico has a ? in it because I *think* the e has an accent on it. Anyways, as I do not program in .net languages, I'll have to turn this over to Mynd

Thought that doesn't explain why your checksum is also wrong.

Hdx thanks for the help, i just figure it out, it was the valuestring that i wasnt parsing correctly (i dont know why, i had to build a new method) also to myndfyre and Rob :).