Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: UserLoser on January 15, 2003, 10:23 AM

Title: Packet 53+54
Post by: UserLoser on January 15, 2003, 10:23 AM
How does BNLS hash the data for packets 53/54 or does anybody else know how to do it without BNLS?
Title: Re: Packet 53+54
Post by: Spht on January 15, 2003, 10:32 AM
I am not familiar with packets 0x35 and 0x36.
Title: Re: Packet 53+54
Post by: UserLoser on January 15, 2003, 10:40 AM
QuoteI am not familiar with packets 0x35 and 0x36.

..........?
Title: Re: Packet 53+54
Post by: Noodlez on January 15, 2003, 11:34 AM
haha, you got owned.
Title: Re: Packet 53+54
Post by: tA-Kane on January 15, 2003, 11:53 AM
I've never seen 0x35 (perhaps you could show me a packetlog?), but 0x36 is...

DWORD - CDKeyStringLength
DWORD - ProductID (Not STAR/SEXP/W2BN/etc)
DWORD - CDKeyValue1
DWORD - ServerKey
DWORD - ClientKey
5 DWORDS - KeyHash

The KeyHash is generated by doing HashData of...

DWORD - ServerKey
DWORD - ClientKey
DWORD - ProductID
DWORD - CDKeyValue1
DWORD - CDKeyValue2

The server provides the Server key in one of the first packets (too lazy to look it up atm), the client key can be anything (most people do GetTickCount()).

Refer to the BNLS's GetVersionByte sequence to get the ProductID; it uses the same IDs.

You get the two CDKeyValues from decrypting the CD Key.
Title: Re: Packet 53+54
Post by: Zorm on January 15, 2003, 03:25 PM
you guys are so mean!  :-/
Title: Re: Packet 53+54
Post by: UserLoser on January 15, 2003, 03:35 PM
I've never heard/seen packet 35 either.  I do believe i said 54/53, unless they are the same which i dont think they are...

Quotehaha, you got owned.
Wtf is this supposed to mean?
Title: Re: Packet 53+54
Post by: Zakath on January 15, 2003, 05:29 PM
Hehe...good one Spht.

Because some of my friends are stumped as well, I'll spill the beans.

Convert '53' into hex. It becomes 0x35.
Title: Re: Packet 53+54
Post by: Mesiah / haiseM on January 15, 2003, 05:32 PM
Zakath, you are a fucking genious!
Title: Re: Packet 53+54
Post by: Yoni on January 16, 2003, 04:08 AM
#define SID_AUTH_ACCOUNTLOGON           (0x53)
#define SID_AUTH_ACCOUNTLOGONPROOF      (0x54)

QuoteHow
Automagically.
Title: Re: Packet 53+54
Post by: tA-Kane on January 16, 2003, 06:26 AM
Way to ruin the fun, Zakath  ::)

UserLoser, you should *always* be sure the people you're asking help from know what you're referencing to, such as decimal vs hex.
Title: Re: Packet 53+54
Post by: UserLoser on January 16, 2003, 07:30 AM
I didnt even think of that
Title: Re: Packet 53+54
Post by: tA-Kane on January 16, 2003, 08:29 AM
that's intelligent...  ::)

*refrains from a nasty flame*
Title: Re: Packet 53+54
Post by: UserLoser on January 16, 2003, 12:50 PM
:-* <--thinks skywing should share how to hash it :o
Title: Re: Packet 53+54
Post by: Noodlez on January 16, 2003, 02:36 PM
/me thinks you dont deserve the hash if you couldnt catch on to what spht said
Title: Re: Packet 53+54
Post by: UserLoser on January 16, 2003, 02:44 PM
Quote/me thinks you dont deserve the hash if you couldnt catch on to what spht said

So everytime i see numbers, im supposed to get what it means in hex?
---
:D
Title: Re: Packet 53+54
Post by: Yoni on January 18, 2003, 02:48 AM
QuoteSo everytime i see numbers, im supposed to get what it means in hex?
---
:D
Of course... Have you ever seen The Matrix?
Title: Re: Packet 53+54
Post by: UserLoser on January 18, 2003, 09:53 AM
Yeah, but don't forget im not the only one who didnt think that at first, tA-Kane actually posted code for 0x36 8)
Title: Re: Packet 53+54
Post by: tA-Kane on January 18, 2003, 10:16 AM
Guess what 54 in decimal is in hex?
Title: Re: Packet 53+54
Post by: Arta on January 19, 2003, 06:23 AM
I just deleted a few posts from the end of this thread.

Please stay on topic.