• Welcome to Valhalla Legends Archive.
 

Packet 53+54

Started by UserLoser, January 15, 2003, 10:23 AM

Previous topic - Next topic

UserLoser

How does BNLS hash the data for packets 53/54 or does anybody else know how to do it without BNLS?

Spht

#1
I am not familiar with packets 0x35 and 0x36.

UserLoser

QuoteI am not familiar with packets 0x35 and 0x36.

..........?

Noodlez

#3
haha, you got owned.

tA-Kane

#4
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.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Zorm

#5
you guys are so mean!  :-/
"Now, gentlemen, let us do something today which the world make talk of hereafter."
- Admiral Lord Collingwood

UserLoser

#6
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?

Zakath

#7
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.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Mesiah / haiseM

Zakath, you are a fucking genious!
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Yoni

#9
#define SID_AUTH_ACCOUNTLOGON           (0x53)
#define SID_AUTH_ACCOUNTLOGONPROOF      (0x54)

QuoteHow
Automagically.

tA-Kane

#10
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.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

UserLoser

#11
I didnt even think of that

tA-Kane

#12
that's intelligent...  ::)

*refrains from a nasty flame*
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

UserLoser

#13
:-* <--thinks skywing should share how to hash it :o

Noodlez

#14
/me thinks you dont deserve the hash if you couldnt catch on to what spht said