Warcraft II Forum

Warcraft II => Server.War2.ru => Topic started by: iL on March 30, 2019, 03:09:43 PM

Title: Need to hack the cdkey changer
Post by: iL on March 30, 2019, 03:09:43 PM
Here's an old cdkey changer from 2005. Packed by something.
Need to unpack and get unpacked file.
Final purpose is to remove that "\Warcraft II BNE\" from the end of path.

Also any other better cdkey-changers welcomed.
Also encryption algorithm welcomed.
Title: Re: Need to hack the cdkey changer
Post by: easycompany on March 30, 2019, 03:42:26 PM
lol it catches hacks ??
Title: Re: Need to hack the cdkey changer
Post by: iL on March 30, 2019, 04:06:58 PM
Lol, no, hack in good sense.
That's useful program packed into some wrapper for some unknown reason. Author is away many years ago, but need to look into it's binary code, so program need to be unpacked.
After unpacking there will be a chance to change some parameters inside.
Title: Re: Need to hack the cdkey changer
Post by: Lambchops on March 30, 2019, 05:20:08 PM
Lol, no, hack in good sense.
That's useful program packed into some wrapper for some unknown reason. Author is away many years ago, but need to look into it's binary code, so program need to be unpacked.
After unpacking there will be a chance to change some parameters inside.

Wow!

I believe this was made by a member of the original blizzard team.

It contains stuff like:
g:\\drive3\\users\\pwyatt\\files\\dev\\mopaq\\src\\MPQAPI.cpp                                                                                                                                                                       
G:\\drive3\\dev\\h\\sapi.h

Which look like references to source file locations from their original build enviroment.

Pretty sure "pwyatt" is Patrick Wyatt (https://en.wikipedia.org/wiki/Patrick_Wyatt)

The string "Warcraft II BNE" isn't immediately apparant, but it does (like WC2 itself) have references to the old PKZIP compression library, so perhaps it is in a block of zipped data.

More likely it's just pulling that string from the registry somewhere - or an mpq archive.

It's 7:19am here and I have to leave for work, but I will definitely look at this file more closely asap :)


-- edit --

attached unpacked file
Title: Re: Need to hack the cdkey changer
Post by: iL on March 30, 2019, 06:00:03 PM
Wow!

I believe this was made by a member of the original blizzard team.
Yes, i think zzzKOTzzz got it somewhere from blizzard installer or w/e and then packed into his own utility.
Thanks for unpacking!

Upd: looks like it's still not completely decrypted:
i can't find text strings there. Looks like need some more job for decrypting it...
Title: Re: Need to hack the cdkey changer
Post by: Lambchops on March 30, 2019, 11:46:20 PM
Upd: looks like it's still not completely decrypted:
i can't find text strings there. Looks like need some more job for decrypting it...


.data section starts at 0x3F000

Lots of strings .... just no "Warcraft II BNE"


(http://forum.war2.ru/index.php?action=dlattach;topic=4861.0;attach=2965)
Title: Re: Need to hack the cdkey changer
Post by: iL on March 31, 2019, 01:22:48 AM
Lots of strings .... just no "Warcraft II BNE"
Yes, lots of strings... except useful.

Well, i understood how gog war2 works. So, no need to use any cd-key changers anymore.
Title: Re: Need to hack the cdkey changer
Post by: Lambchops on March 31, 2019, 05:41:42 PM
There ya go  :critter: