Valhalla Legends Forums Archive | Battle.net Bot Development | CD-Key Extraction

AuthorMessageTime
Chaos
Is it possible to extract the CD-Key from a Blizzard game's installation directory (or where ever it is located)? If so, does anyone know how to do this, or what file it is saved in on War3 or Star or any other Blizzard clients?

If you have code, I am using Visual Basic.
October 24, 2003, 4:15 AM
Skywing
[quote author=Chaos link=board=17;threadid=3218;start=0#msg25310 date=1066968907]
Is it possible to extract the CD-Key from a Blizzard game's installation directory (or where ever it is located)? If so, does anyone know how to do this, or what file it is saved in on War3 or Star or any other Blizzard clients?

If you have code, I am using Visual Basic.
[/quote]
It is indeed possible, but not without a significant amount of work, most especially for a Visual Basic user.

Those files are encrypted in the main game MPQ (StarDat.mpq, etc).

You would have to use Storm.dll or a third-party C DLL for MPQ I/O. Of course, you could try to port one to VB, but there's a number of things that could be a real pain to deal with in VB, such as the data decompression parts. If you were using Storm.dll, then you would have to do a fair amount of work with pointers to hack out the protection which dynamic linking Storm.dll triggers (everything you explicitly import from a DLL in VB is dynamic linked).

After that, you'd need to spend the time to locate and reverse engineer the CD-key decryption routines in the game executable.
October 24, 2003, 5:08 AM
Chaos
Sounds almost as difficult as trying to hash WAR3. I might as well give up. However, I did find a program that can change your Starcraft CD-Key without reinstalling the game. It's called CD-Key Changer by kmx /MYTH.
October 24, 2003, 5:57 AM
iago
To answer your other question, the files are:
Starcraft: Stardat.mpq
War3: war3dat.mpq
..etc.
(follow the pattern for other games)
October 24, 2003, 7:01 AM
Adron
[quote author=iago link=board=17;threadid=3218;start=0#msg25324 date=1066978888]
To answer your other question, the files are:
Starcraft: Stardat.mpq
War3: war3dat.mpq
..etc.
(follow the pattern for other games)
[/quote]

Wasn't it in a sound file for one of the games?
October 24, 2003, 10:31 AM
Yoni
[quote author=Adron link=board=17;threadid=3218;start=0#msg25345 date=1066991473]
Wasn't it in a sound file for one of the games?
[/quote]
Yes, d2sfx.mpq for Diablo 2.
October 24, 2003, 1:38 PM
iago
[quote author=Yoni link=board=17;threadid=3218;start=0#msg25356 date=1067002691]
[quote author=Adron link=board=17;threadid=3218;start=0#msg25345 date=1066991473]
Wasn't it in a sound file for one of the games?
[/quote]
Yes, d2sfx.mpq for Diablo 2.
[/quote]

hmm, I assumed it was in the main .mpq file. Go figure :)
October 24, 2003, 5:48 PM

Search