• Welcome to Valhalla Legends Archive.
 

War3 v1.15 beta patch - new stuff! (updated)

Started by UserLoser., April 17, 2004, 11:07 AM

Previous topic - Next topic

Eric

#15
Quote from: tA-Kane on April 20, 2004, 09:43 PM
Quote from: Spht on April 19, 2004, 08:34 AMIf someone *really* wants to get on the server, they can download the CheckRevision DLL on the bot development web site and run a local CheckRevision on the game (assuming you own Warcraft III 1.15)
Am I missing something? I was under the impression that the implementation of CheckRevision() in that DLL does not work for WarCraft 3 or TFT?

Warcraft III uses the same CheckRevision() as all the other products requiring auth use; similar CD-Key decoding/hashing structure too, I believe.

UserLoser.

Quote from: LoRd[nK] on April 20, 2004, 11:25 PM

Warcraft III uses the same CheckRevision() as all the other products requiring auth use; similar CD-Key decoding/hashing structure too, I believe.

IIRC, Warcraft III uses two key value tables, one that's 256 bytes, and another which is 480.  I believe the 256 one is almost same, if not, exact to the current Diablo II/Warcraft II CDkey decoding.  As far as the hashing, I think it's the same.  You take the values returned (in this case, iirc a 10 byte value, and dunno the other one) and hash them the same

MyndFyre

Allright, so I recompiled the CheckRevision function into a Win32 DLL with the function exported, and I am successfully calling it with the DllImport("CheckRevision.dll") attribute from my C# code (I checked the packet log).  But, I think I'm passing in the wrong files.

I'm using (right now) war3.exe, storm.dll, and game.dll for CheckRevision.  Here's the exact call:


int authcheckver = 0, authcheckcsum = 0;
CheckRevision("C:\\Program Files\\Warcraft III\\war3.exe", @"C:\Program Files\Warcraft III\storm.dll", @"C:\Program Files\Warcraft III\game.dll", this.checkForm, ref authcheckver, ref authcheckcsum, this.versionCheckStatString, this.mpqFile);


(Yes, the ref keyword is effectively the same as passing a pointer).

this.versionCheckStatString is set correctly when I'm done.

this.checkForm is the string that contains the hashing formula.

I'm getting "Game version not recognized" back.
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.

iago

It's possible you have them in the wrong order, since order does matter.

If you want a java version (closer to what you're doing) let me know and I'll send it to you.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


LordNevar

Your getting "game version incorrect" is not caused by your hash calls or your cdkey calls, it's cause something most people don't know there's 2 cdkey's being swapped around while using wc3. There's the product key that use send to bnet, and the other key that bnet sends back to you in response to identify your cdkey, and game information.  As Far as I know skywing's the only one that's been able to emulate that key. If anyone can figure out any info on the other key, or if skywing would give us a hint, than wc3 hashing is indeed very prossible.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

Soul Taker

Quote from: LordNevar on April 22, 2004, 01:28 PM
Your getting "game version incorrect" is not caused by your hash calls or your cdkey calls, it's cause something most people don't know there's 2 cdkey's being swapped around while using wc3. There's the product key that use send to bnet, and the other key that bnet sends back to you in response to identify your cdkey, and game information.  As Far as I know skywing's the only one that's been able to emulate that key. If anyone can figure out any info on the other key, or if skywing would give us a hint, than wc3 hashing is indeed very prossible.
What?

Eric

Quote from: Soul Taker on April 22, 2004, 02:47 PM
Quote from: LordNevar on April 22, 2004, 01:28 PM
Your getting "game version incorrect" is not caused by your hash calls or your cdkey calls, it's cause something most people don't know there's 2 cdkey's being swapped around while using wc3. There's the product key that use send to bnet, and the other key that bnet sends back to you in response to identify your cdkey, and game information.  As Far as I know skywing's the only one that's been able to emulate that key. If anyone can figure out any info on the other key, or if skywing would give us a hint, than wc3 hashing is indeed very prossible.
What?

I don't even think he knows what he just said.

MyndFyre

Quote from: LoRd[nK] on April 22, 2004, 06:00 PM
Quote from: Soul Taker on April 22, 2004, 02:47 PM
Quote from: LordNevar on April 22, 2004, 01:28 PM
Your getting "game version incorrect" is not caused by your hash calls or your cdkey calls, it's cause something most people don't know there's 2 cdkey's being swapped around while using wc3. There's the product key that use send to bnet, and the other key that bnet sends back to you in response to identify your cdkey, and game information.  As Far as I know skywing's the only one that's been able to emulate that key. If anyone can figure out any info on the other key, or if skywing would give us a hint, than wc3 hashing is indeed very prossible.
What?

I don't even think he knows what he just said.

can't you guys see?  Since Skywing did it, it's "prossible."

Is that a synthesis of "probable" and "possible" ?
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.