Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: sPlOrYgOn on July 20, 2003, 02:08 PM

Title: making code to check hashes
Post by: sPlOrYgOn on July 20, 2003, 02:08 PM
I need help making a code to check hashes but I don't understand y we can't just send the data without having hashes.  If anyone can tell me how to check for hashes and y we can't just send data i'd like it.
Title: Re:making code to check hashes
Post by: iago on July 20, 2003, 02:13 PM
The reason for the hash is to prove that you are really using the game client.  
Title: Re:making code to check hashes
Post by: sPlOrYgOn on July 20, 2003, 02:18 PM
but y can't u just send them fake info?
Title: Re:making code to check hashes
Post by: Camel on July 20, 2003, 03:20 PM
One must calculate the checksum based on a string provided by battle.net; the value is dynamic and therefore cannot be spoofed.
Title: Re:making code to check hashes
Post by: iago on July 20, 2003, 09:20 PM
They didn't want to make it easy to write a bot :P
Title: Re:making code to check hashes
Post by: Mesiah / haiseM on July 20, 2003, 09:49 PM
Quote from: Camel on July 20, 2003, 03:20 PM
One must calculate the checksum based on a string provided by battle.net; the value is dynamic and therefore cannot be spoofed.

Don't forget the mpq version, thats plays a role too.
Title: Re:making code to check hashes
Post by: DarkMinion on July 20, 2003, 11:21 PM
Camel apparently thinks they're both sent in the same string  ;)

Woe is VB users.  :-\
Title: Re:making code to check hashes
Post by: Camel on July 21, 2003, 02:33 PM
I was referring to the equation. The first 3 values in the string are seeds, and so is the mpq version.
Title: Re:making code to check hashes
Post by: c0ol on July 23, 2003, 05:50 PM
less seed, more random initalizations of the variables. basicly the equations, initalized with the values sent, are done for each dword in the collective set of hash files, the resulting "proof" is having a value that matches the value that was calculated serverside for the same files/equation set.
Title: Re:making code to check hashes
Post by: CoLdFeAr on July 23, 2003, 10:31 PM
You could make it check the file sizes.
Title: Re:making code to check hashes
Post by: Noodlez on July 24, 2003, 02:32 AM
and what if someone created files with the exact same size?
Title: Re:making code to check hashes
Post by: Camel on July 24, 2003, 12:20 PM
Quote from: Noodlez on July 24, 2003, 02:32 AM
and what if someone created files with the exact same size?

The checksum would still be wrong.