1
Botdev / Re: Logging to BNet in c/c++
« on: April 23, 2007, 08:24:13 am »
Funny example
I guess it should return keyarray, so I tried to port it to c and make it return keyarray.
For now I would need some confirmation again.
For cdkey 8VP8H276GG6ZNTTJ keyarray i receive is 06419C125496D5A0
Is it proper?
PS: the cdkey is banned.
Edit:
I guess its proper, since all decoded cdkeys start with 06 for me.
Edit 2:
This function sends 6 DWords to calcHashBuffer, but it only needs 5. Or am I wrong?
I guess it should return keyarray, so I tried to port it to c and make it return keyarray.
For now I would need some confirmation again.
For cdkey 8VP8H276GG6ZNTTJ keyarray i receive is 06419C125496D5A0
Is it proper?
PS: the cdkey is banned.
Edit:
I guess its proper, since all decoded cdkeys start with 06 for me.
Edit 2:
Code: [Select]
public int[] getKeyHash(int clientToken, int serverToken)
{
Buffer hashData = new Buffer();
hashData.addDWord(clientToken);
hashData.addDWord(serverToken);
hashData.addDWord(getProduct());
hashData.addDWord(getVal1());
hashData.addDWord(0);
hashData.addDWord(getVal2());
return BrokenSHA1.calcHashBuffer(hashData.getBuffer());
}
This function sends 6 DWords to calcHashBuffer, but it only needs 5. Or am I wrong?