• Welcome to Valhalla Legends Archive.
 

CD-Key Extraction

Started by Chaos, October 23, 2003, 11:15 PM

Previous topic - Next topic

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.

Skywing

#1
Quote from: Chaos on October 23, 2003, 11:15 PM
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.
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.

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.

iago

To answer your other question, the files are:
Starcraft: Stardat.mpq
War3: war3dat.mpq
..etc.
(follow the pattern for other games)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Quote from: iago on October 24, 2003, 02:01 AM
To answer your other question, the files are:
Starcraft: Stardat.mpq
War3: war3dat.mpq
..etc.
(follow the pattern for other games)

Wasn't it in a sound file for one of the games?

Yoni

Quote from: Adron on October 24, 2003, 05:31 AM
Wasn't it in a sound file for one of the games?
Yes, d2sfx.mpq for Diablo 2.

iago

Quote from: Yoni on October 24, 2003, 08:38 AM
Quote from: Adron on October 24, 2003, 05:31 AM
Wasn't it in a sound file for one of the games?
Yes, d2sfx.mpq for Diablo 2.

hmm, I assumed it was in the main .mpq file.  Go figure :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*