Valhalla Legends Forums Archive | Battle.net Bot Development | Where are CDKeys stored?

AuthorMessageTime
Gilovan
I am attempting to add a "cdkey scanner" to my bot, because everyone says "it would be helpful". Most likely, they just want to extract CDKeys from there computers :-P

I have already managed to locate all the Starcraft Files (I only need to do this for Starcraft) folders, but I do not know which file, or where in whichever file, the cdkey is stored, or if it is encrypted.

All help is appreciated.
May 22, 2005, 7:38 PM
dRAgoN
They are encrypted in the mpq's
May 22, 2005, 7:42 PM
Gilovan
Alright, I hate to get off to a bad start, but I was fishing for a little more information then that. This happens to me a lot, because I never ask a full question ;)

I am targeting Macintosh  ( OS X )
I would like to know exactly which file
I would like to know exactly where the CDKey is located (bit point, character point, etc.)
I would like to know what it is encrypted with, and how to decrypt.

Sorry if I say piqued, I really am not trying to be evil.
May 22, 2005, 7:49 PM
Networks
[quote author=Gilovan link=topic=11669.msg113409#msg113409 date=1116791344]
Alright, I hate to get off to a bad start, but I was fishing for a little more information then that. This happens to me a lot, because I never ask a full question ;)

I am targeting Macintosh  ( OS X )
I would like to know exactly which file
I would like to know exactly where the CDKey is located (bit point, character point, etc.)
I would like to know what it is encrypted with, and how to decrypt.

Sorry if I say piqued, I really am not trying to be evil.

[/quote]

Wouldn't it be hashed?
May 22, 2005, 7:53 PM
Gilovan
No, its not hashed, because other people have built "extractors" on the PC. Besides, hash files are used every-time you connect to battle.net with a game, right? So those hash files have to get the CDKey from somewhere...
May 22, 2005, 7:55 PM
LoRd
[quote author=Gilovan link=topic=11669.msg113411#msg113411 date=1116791756]
No, its not hashed, because other people have built "extractors" on the PC. Besides, hash files are used every-time you connect to battle.net with a game, right? So those hash files have to get the CDKey from somewhere...
[/quote]

The only CD-Key "extractors" that I've seen grab the CD-Key from the game's memory during the connection process.
May 22, 2005, 8:01 PM
Gilovan
Really? Well then I have been looking in all the wrong places. I will take a look at the memory, maybe its there...
May 22, 2005, 8:04 PM
Dyndrilliac
People have made CD-Key "extractors" for the PC that obtain the information from the MPQ. Onlyer made one for Diablo II, so I assume the keys are hashed in the MPQ's somewhere and that this is possible for Starcraft. You should get in touch with him.
May 22, 2005, 8:12 PM
Soul Taker
If they were hashed, you wouldn't be able to get the key from the data.
May 22, 2005, 10:05 PM
Yegg
[quote author=Soul Taker link=topic=11669.msg113434#msg113434 date=1116799535]
If they were hashed, you wouldn't be able to get the key from the data.
[/quote]
Unless you knew how to already hash the cdkey exactly how it gets hashed in the mpq file. Then you could easily find the cdkey in the mpq files data.
May 22, 2005, 10:22 PM
Lenny
[quote author=Yegg link=topic=11669.msg113437#msg113437 date=1116800529]
[quote author=Soul Taker link=topic=11669.msg113434#msg113434 date=1116799535]
If they were hashed, you wouldn't be able to get the key from the data.
[/quote]
Unless you knew how to already hash the cdkey exactly how it gets hashed in the mpq file. Then you could easily find the cdkey in the mpq files data.
[/quote]

I don't quite think you understand what hashing is...

One thing it is though is irreversible  ;D

I don't consider brute forcing as reversing, even though it is possible with starcraft.
May 23, 2005, 2:04 AM
Deception
[quote author=Dyndrilliac link=topic=11669.msg113419#msg113419 date=1116792744]
People have made CD-Key "extractors" for the PC that obtain the information from the MPQ. Onlyer made one for Diablo II, so I assume the keys are hashed in the MPQ's somewhere and that this is possible for Starcraft. You should get in touch with him.
[/quote]

Which MPQ are you talking about?
May 27, 2005, 11:04 AM
UserLoser.
StarDat.mpq I believe
May 27, 2005, 6:25 PM
HdxBmx27
Has anyone actually tryed looking into how SC retreaves the CDKey form the .mpq file? It's handeled in Battle.snp, i've seen it. As soon as I get home I'll load up IDA and find it for you.
~-~(HDX)~-~
May 27, 2005, 6:26 PM
Kp
Yes.  Skywing mapped it out, and I think he even designed a utility that could read/write the cdkey file in the MPQ.
May 27, 2005, 7:07 PM
JoeTheOdd
Anybody have this map of the MPQ file?

EDIT: Ugh, Blaze![quote]mail() [function.mail]: SMTP server response: 501 5.1.8 < "Valhalla Legends Forum" <nunya@bizness.nyet>>... Domain of sender address nunya@bizness.nyet does not exist[/quote]
May 28, 2005, 10:32 PM
iago
[quote author=Joe[x86] link=topic=11669.msg113990#msg113990 date=1117319578]
EDIT: Ugh, Blaze![quote]mail() [function.mail]: SMTP server response: 501 5.1.8 < "Valhalla Legends Forum" <nunya@bizness.nyet>>... Domain of sender address nunya@bizness.nyet does not exist[/quote]
[/quote]

That's not Blaze's email, that's the forum administrator's email. 
May 29, 2005, 7:38 AM
Kp
Yes, but it's Blaze's fault that the forum keeps trying to send e-mail.  I wonder whether if it's even worth allowing people to request e-mail notification.
May 29, 2005, 5:18 PM
iago
Well, if the email notification worked, it would be fine...
May 29, 2005, 7:13 PM
Kp
Or if Blaze would stop signing up for notification on topics after we KNOW he has been advised that it doesn't work, that'd be good too! :)
May 29, 2005, 8:22 PM
Mephisto
Contact the authors of CD-Key changers for games like Diablo II and StarCraft.
May 29, 2005, 9:10 PM
HdxBmx27
I've been working on this for a while, and Checking out SC's Battle.snp, I couldn't find where it got the cdkey. But simply monitering memory while loggin in works perfectly fine.

As for the e-mail crap. It's not blazes foult. It's hte forum admins. They need to set a VALID e-mail address for the sender.
[quote]mail() [function.mail]: SMTP server response: 501 5.1.8 < "Valhalla Legends Forum" <nunya@bizness.nyet>>... Domain of sender address nunya@bizness.nyet does not exist[/quote]

Change it to something stupied like VLForums@yahoo.com and it will be fixed. ... It dosn't seem to be a problem anymore...
~-~(HDX)~-~
May 29, 2005, 11:10 PM
Kp
[quote author=HdxBmx27 link=topic=11669.msg114117#msg114117 date=1117408259]As for the e-mail crap. It's not blazes foult. It's hte forum admins. They need to set a VALID e-mail address for the sender.
[quote]mail() [function.mail]: SMTP server response: 501 5.1.8 < "Valhalla Legends Forum" <nunya@bizness.nyet>>... Domain of sender address nunya@bizness.nyet does not exist[/quote][/quote]

I'm aware that it is a forum configuration issue.  My point was that if Blaze and similar users would stop signing up for a service (e-mail notification) after they know it DOES NOT WORK (regardless of whose fault it is that the service doesn't work), the rest of us wouldn't be getting these annoying messages.
May 30, 2005, 12:28 AM

Search