Valhalla Legends Forums Archive | Battle.net Bot Development | making code to check hashes

AuthorMessageTime
sPlOrYgOn
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.
July 20, 2003, 7:08 PM
iago
The reason for the hash is to prove that you are really using the game client.
July 20, 2003, 7:13 PM
sPlOrYgOn
but y can't u just send them fake info?
July 20, 2003, 7:18 PM
Camel
One must calculate the checksum based on a string provided by battle.net; the value is dynamic and therefore cannot be spoofed.
July 20, 2003, 8:20 PM
iago
They didn't want to make it easy to write a bot :P
July 21, 2003, 2:20 AM
MesiaH
[quote author=Camel link=board=17;threadid=1977;start=0#msg15414 date=1058732441]
One must calculate the checksum based on a string provided by battle.net; the value is dynamic and therefore cannot be spoofed.
[/quote]

Don't forget the mpq version, thats plays a role too.
July 21, 2003, 2:49 AM
DarkMinion
Camel apparently thinks they're both sent in the same string ;)

Woe is VB users. :-\
July 21, 2003, 4:21 AM
Camel
I was referring to the equation. The first 3 values in the string are seeds, and so is the mpq version.
July 21, 2003, 7:33 PM
c0ol
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.
July 23, 2003, 10:50 PM
CoLdFeAr
You could make it check the file sizes.
July 24, 2003, 3:31 AM
Noodlez
and what if someone created files with the exact same size?
July 24, 2003, 7:32 AM
Camel
[quote author=Noodlez link=board=17;threadid=1977;start=0#msg15882 date=1059031931]
and what if someone created files with the exact same size?
[/quote]

The checksum would still be wrong.
July 24, 2003, 5:20 PM

Search