• Welcome to Valhalla Legends Archive.
 

CDKey connection.

Started by Luxer, June 29, 2004, 05:51 PM

Previous topic - Next topic

Luxer

I am lost. After succsessfully creating a chat bot that uses the caht gateway (acsii 3)
I start wondering how to connect with a CDKey. I looked into BNLS. No thanks. I don't want to deal with bg3. What kind of encription does a cdkey use when connecting to battle.net?  :-\   :-[

BaDDBLooD

I am not really sure on what your asking, because i am not very Familiar with Local hashing myself.  There is a Public CDKey Decode/Encrypt for starcraft/broodwar Warcraft II/Diablo2. Unfortunately Warcraft III is still quite in it's Infancy.  I am sure you can either Find them by Searching google, or just searching these forums.
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Zakath

The hashing algorithm used for all pre-War3 encryption operations is a pseudo-SHA1 method that is particular to Blizzard's software. You can find a freely available implementation written by Yobguls floating around in various places, although from what I understand it isn't especially optimized.
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.

GoSuGaMING

#3
Quote from: Zakath on June 29, 2004, 09:49 PM
The hashing algorithm used for all pre-War3 encryption operations is a pseudo-SHA1 method that is particular to Blizzard's software. You can find a freely available implementation written by Yobguls floating around in various places, although from what I understand it isn't especially optimized.

pseudo-SHA1 ?

its standard SHA-1 :X

MyndFyre

#4
Quote from: GoSuGaMING on June 29, 2004, 09:51 PM
Quote from: Zakath on June 29, 2004, 09:49 PM
The hashing algorithm used for all pre-War3 encryption operations is a pseudo-SHA1 method that is particular to Blizzard's software. You can find a freely available implementation written by Yobguls floating around in various places, although from what I understand it isn't especially optimized.

pseudo-SHA1 ?

its standard SHA-1 :X

No, I believe it's called Broken SHA-1, because it uses SHA-1, then prepends the server key and appends the client key, then calculates the SHA-1 again.  That is not exactly standard SHA-1, but rather a variant of it, hence "pseudo."
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Zakath

The accepted term for the SHA1 hash used by Blizzard's games has been "pseudo-SHA1" for much longer than you've been active in the bot-making community, Gosu. I suggest you do your research before criticizing me like that.
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.

Luxer

nevermind. I wonuld not understand anyway. Thanks!

GoSuGaMING

#7
Quote from: Zakath on June 29, 2004, 09:58 PM
The accepted term for the SHA1 hash used by Blizzard's games has been "pseudo-SHA1" for much longer than you've been active in the bot-making community, Gosu. I suggest you do your research before criticizing me like that.

i'm sorry im a ass! *YAY*

dxoigmn

#8
Quote from: Myndfyre on June 29, 2004, 09:56 PM
No, I believe it's called Broken SHA-1, because it uses SHA-1, then prepends the server key and appends the client key, then calculates the SHA-1 again.  That is not exactly standard SHA-1, but rather a variant of it, hence "pseudo."

That's not the reason it is called "Broken SHA-1."  SHA-1 is a secure hash algorithm (SHA), not a method of hashing using a salt as you described.  The reason it is called "Broken SHA-1" is Blizzard's implementation of SHA doesn't adhere to the NIST standard, it's broken.  This has been discussed before as referenced in the Bot Dev Reference Forum.

hismajesty

Quote from: BaDDBLooD on June 29, 2004, 06:50 PM
I am not really sure on what your asking, because i am not very Familiar with Local hashing myself.  There is a Public CDKey Decode/Encrypt for starcraft/broodwar Warcraft II/Diablo2. Unfortunately Warcraft III is still quite in it's Infancy.  I am sure you can either Find them by Searching google, or just searching these forums.

Assuming he's programming in vb, the bnetauth.dll source is available and it's not too hard to convert the cd-key functions to vb.

Meh


Eric

#11
Quote from: The-Rabid-Lord on July 01, 2004, 11:16 AM
http://www.dark-wire.net/exile/members/tutorials.php?view=15 This might be of help.
A tutorial without explanations of what's going on isn't a helpful tutorial, not to mention that is one of the most horrid connection classes I've ever seen.

Warrior

I agree any tutorial that just spits out code is no good.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

hismajesty

Quote from: LoRd[nK] on July 01, 2004, 04:42 PM
Quote from: The-Rabid-Lord on July 01, 2004, 11:16 AM
http://www.dark-wire.net/exile/members/tutorials.php?view=15 This might be of help.
A tutorial without explanations of what's going on isn't a helpful tutorial, not to mention that is one of the most horrid connection classes I've ever seen.

Most of it is public code, which may be why?

ChR0NiC

#14
Keep in mind that not only do you need to "encrypt" the cd key, but you must do the same with the password as well. So you're way better off learning the language and then trying to figure out how to use this Standard Hash Algorithm method used.