Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Bloody on August 11, 2004, 12:09 AM

Title: Check keys through a website.
Post by: Bloody on August 11, 2004, 12:09 AM
Could any1 tell me if this is possible and meybe an idea of how u would go about coding preferably in php.  -Thx
Title: Re:Check keys through a website.
Post by: quasi-modo on August 11, 2004, 05:52 AM
"checking keys"?

I do not know what you mean, buts I am pretty sure its not possible. Php is server side and it is not run by the browser. This means you cannot get computer information such as resolution, system time, or play with the browser or keyboard. You are probably looking for something more... java script.
Title: Re:Check keys through a website.
Post by: Meh on August 11, 2004, 12:14 PM
I think he may mean bnet keys, if so there is some documentation on connecting on the forums.
Title: Re:Check keys through a website.
Post by: Bloody on August 11, 2004, 02:38 PM
Yes i did mean bnet keys.  Also, u said there was some info on the forums.  I searched but couldnt find anything so if u could point me there or something that would be great.  -Thx
Title: Re:Check keys through a website.
Post by: Meh on August 11, 2004, 02:41 PM
Um the info is about checking stats, I cant bebothered to check each page of the web section sorry, but im tired. It was done by Kyro or someone like that. It has the connection sequence there. It may help you.
Title: Re:Check keys through a website.
Post by: Bloody on August 11, 2004, 02:47 PM
K, thx for the help.
Title: Re:Check keys through a website.
Post by: Warrior on August 11, 2004, 03:25 PM
..and that is a CHAT connection not a Binary one.
Title: Re:Check keys through a website.
Post by: Arta on August 11, 2004, 09:34 PM
You could check if a key was syntactically valid (ie, decodes correctly) but not if it was valid on Battle.net.
Title: Re:Check keys through a website.
Post by: Blaze on August 11, 2004, 11:08 PM
I wrote a software application that generates random cdkeys then trys them on bnet, with an interval and it also swiches servers. If someone gave me the anog for generating proper cdkeys, it might work better -.-......
Title: Re:Check keys through a website.
Post by: LordNevar on August 12, 2004, 08:03 AM
Who ever comes up with the correct algoritham is definately not going to release it. That's an infinite amount of cdkey's, think of the possibilities.
Title: Re:Check keys through a website.
Post by: Arta on August 12, 2004, 08:07 AM
No one knows the correct algorithm except blizzard. If you're generating random keys, you should make sure your product number is correct and then make random product/private values within the correct ranges, and then Then encode the key and compute the check digit. It's highly unlikely that the key will work on Battle.net, but you would be able to use it to install whichever game the key was for.
Title: Re:Check keys through a website.
Post by: Blaze on August 12, 2004, 12:19 PM
The code that one of the cdkeys generators gave me actually worked... if only I could get the code they used...  and add it to yaesu...
Title: Re:Check keys through a website.
Post by: tA-Kane on August 12, 2004, 01:05 PM
Quote from: Arta[vL] on August 11, 2004, 09:34 PMYou could check if a key was syntactically valid (ie, decodes correctly) but not if it was valid on Battle.net.
All he'd have to do to check if it's valid on Battle.net would be to connect to Battle.net and go through the version hashing and CD key sequence. Kyro was kind enough to prove that connecting onto a CHAT connection to check a user's stats is possible. Something so simple as checking a CD key using PHP should not only be possible, but perhaps even useful. Using BNLS, no CheckRevision would be necessary... no CDKeyDecode would be necessary... and then once you've checked the CD key, you can then report to the user as to whether or not the key is good.

I'm sure it can be done with PHP; it just hasn't yet.

The only problem is that it could easily be used for harvesting CD keys  :(
Title: Re:Check keys through a website.
Post by: Adron on August 12, 2004, 02:04 PM
Quote from: tA-Kane on August 12, 2004, 01:05 PM
The only problem is that it could easily be used for harvesting CD keys  :(

The problem is that after a few invalid cd keys, the web server will be ip banned from battle.net...
Title: Re:Check keys through a website.
Post by: tA-Kane on August 12, 2004, 02:36 PM
Have the webserver use proxies?
Title: Re:Check keys through a website.
Post by: ChR0NiC on August 12, 2004, 05:42 PM
Quote from: Kk)Blaze(kK on August 12, 2004, 12:19 PM
The code that one of the cdkeys generators gave me actually worked... if only I could get the code they used...  and add it to yaesu...

What is it written in? Perhaps it can be decompiled or you could check it in Hex Workshop? It wouldn't be impossible.
Title: Re:Check keys through a website.
Post by: drivehappy on August 14, 2004, 09:26 PM
Here's some code I wrote not too long ago that will check for a correct D2 Classic key or LoD key. It probably needs some work.

http://mousepad-d2.com/phpBB2/viewtopic.php?t=8030
Title: Re:Check keys through a website.
Post by: Blaze on August 15, 2004, 03:29 AM
It was either in vb or C... looks more vb to me.

Heres a link to the one that I got a valid one from..

http://star.craft.by/esoft/files/?id=4

edit:
Quote from: tA-Kane on August 12, 2004, 02:36 PM
Have the webserver use proxies?

If somebody does do this, and then they spam invalid keys, that would spoil the proxies for everyone...
Title: Re:Check keys through a website.
Post by: tA-Kane on August 15, 2004, 11:58 AM
force the user to input their own proxies?
Title: Re:Check keys through a website.
Post by: Blaze on August 15, 2004, 12:35 PM
That actually might solve that problem... Good Thinking...