Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Adron on October 16, 2003, 04:28 PM

Title: cd key generator
Post by: Adron on October 16, 2003, 04:28 PM
Quote from: seiya on October 16, 2003, 04:21 PM
i needed help on a cd key generator i was making one.....i wanet when they press generate a cd key came out an when they press again a difrent cd key would come out

That's easy, all you have to do is:


Sub Command1_Click
 Label1.Caption = Rnd
End Sub


Now, if you'd want a cd key that works for doing something particular, in some particular game or so, it would be a totally different story.
Title: Re:cd key generator
Post by: Soul Taker on October 16, 2003, 04:50 PM
Shouldn't this be in the Fun Forum =P
Title: Re:cd key generator
Post by: CGrom on October 21, 2003, 12:46 AM
     Too bad it isnt possible to make cd key generator's that make cd keys that can work on Battle.net.
Title: Re:cd key generator
Post by: iago on October 21, 2003, 01:01 AM
Of course it's possible!  Blizzard does, don't they?
Title: Re:cd key generator
Post by: drivehappy on October 21, 2003, 01:21 AM
What you first need to do is exit the country permanently - for legal reasons. Then hack into Blizzard's computers containing the source code, or steal the battle.net server code handling the key checksum and viola!
Or get a disgruntled ex-employee before the rampage to give you the code.
Title: Re:cd key generator
Post by: Adron on October 21, 2003, 03:54 AM
You can generate the best candidates you can think of and then test them. Depending on the game it might take 1000 or perhaps 1000000 tries to get one that works.
Title: Re:cd key generator
Post by: Skywing on October 21, 2003, 02:00 PM
Quote from: Adron on October 21, 2003, 03:54 AM
You can generate the best candidates you can think of and then test them. Depending on the game it might take 1000 or perhaps 1000000 tries to get one that works.
Note that each failed try will ban you for a significant length of time.
Title: Re:cd key generator
Post by: Tuberload on October 21, 2003, 02:05 PM
Couldn't you test the CD-KEY by trying to install the game with it? Save you from being banned.
Title: Re:cd key generator
Post by: K on October 21, 2003, 02:07 PM
Quote from: Tuberload on October 21, 2003, 02:05 PM
Couldn't you test the CD-KEY by trying to install the game with it? Save you from being banned.

Except the whole point is that a cd key that is valid for installation isn't necessarily valid for use on battle.net
Title: Re:cd key generator
Post by: Tuberload on October 21, 2003, 02:48 PM
From what I gather that was not the main point. Someone just wanted help making a CD-Key generator. I didn't read anywhere that it had to work on battle.net.

Besides, your chances will be greatly enhanced that the CD-Key will work for battle.net if it works to install the game...
Title: Re:cd key generator
Post by: Adron on October 21, 2003, 04:17 PM
Quote from: Tuberload on October 21, 2003, 02:48 PM
From what I gather that was not the main point. Someone just wanted help making a CD-Key generator. I didn't read anywhere that it had to work on battle.net.

Besides, your chances will be greatly enhanced that the CD-Key will work for battle.net if it works to install the game...


I can generate a very large number of cd keys that works for installing starcraft and only 1 in 1000 of those or less will work on battle.net

And besides, I already wrote an example cd key generator that doesn't work with any particular game or with b.net.
Title: Re:cd key generator
Post by: iago on October 21, 2003, 07:47 PM
At least 1/10 random keys will work to install it by nature of their checking, and the odds of a working b.net key are much, much lower than that.
Title: Re:cd key generator
Post by: Gremlin on October 21, 2003, 08:02 PM
Has anyone looked at serveral keys and found any similarities. Other then the fact that the number start with 1, 2, or 4. That's all I can tell. If you found anything similar please post. We could end up cracking B.Nets system. Hmm.. that would be fun!!
Title: Re:cd key generator
Post by: Kp on October 21, 2003, 08:37 PM
Quote from: Gremlin on October 21, 2003, 08:02 PM
Has anyone looked at serveral keys and found any similarities. Other then the fact that the number start with 1, 2, or 4. That's all I can tell. If you found anything similar please post. We could end up cracking B.Nets system. Hmm.. that would be fun!!
Spawn logins were restricted because they were being abused to get extensive extra usage out of a given CD key.  Now consider what would happen if the CD key authentication mechanism became sufficiently well known that people could just roll their own keys.  It would be entirely meaningless to ban someone's key, because he'd just roll a new one.  Thus, the only recourse left to control malicious users would be to restrict everyone on the compromised product(s) to public channels, or worse.  Yes, that would be great fun.
Title: Re:cd key generator
Post by: Lenny on October 22, 2003, 02:06 PM
Quote from: Kp on October 21, 2003, 08:37 PM
Quote from: Gremlin on October 21, 2003, 08:02 PM
Has anyone looked at serveral keys and found any similarities. Other then the fact that the number start with 1, 2, or 4. That's all I can tell. If you found anything similar please post. We could end up cracking B.Nets system. Hmm.. that would be fun!!
Spawn logins were restricted because they were being abused to get extensive extra usage out of a given CD key.  Now consider what would happen if the CD key authentication mechanism became sufficiently well known that people could just roll their own keys.  It would be entirely meaningless to ban someone's key, because he'd just roll a new one.  Thus, the only recourse left to control malicious users would be to restrict everyone on the compromised product(s) to public channels, or worse.  Yes, that would be great fun.
Well no one would be able to solve the algorithm anyway...Only a leak in Blizzard could make this happen.
Title: Re:cd key generator
Post by: Banana fanna fo fanna on October 22, 2003, 02:37 PM
Quote from: drivehappy on October 21, 2003, 01:21 AM
What you first need to do is exit the country permanently - for legal reasons. Then hack into Blizzard's computers containing the source code, or steal the battle.net server code handling the key checksum and viola!
Or get a disgruntled ex-employee before the rampage to give you the code.

Yeah!

EDIT: check this out http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=22562&lngWId=1 (http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=22562&lngWId=1) :):):)
Title: Re:cd key generator
Post by: Lenny on October 22, 2003, 03:44 PM
You might want to read the comments before downloading that...
It generates random numbers, so if you're not sophisticated enough to mash the number pad with your fist...I recommend it!  :)

Im also surprised pscode would even have this on their server...
Title: Re:cd key generator
Post by: iago on October 22, 2003, 04:32 PM
psscript allows submissions by anybody, I dont think they're filtered unless somebody complains.

Private Sub cmdGenerate_Click()
   'get 4 random numbers
   txt1.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 5 random numbers
   txt2.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 4 random numbers
   txt3.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
End Sub


That's even a very good way to do it.. they should at least generate all 5 digits at the same time!
Title: Re:cd key generator
Post by: Banana fanna fo fanna on October 22, 2003, 07:24 PM
Quote from: Lenny on October 22, 2003, 03:44 PM
You might want to read the comments before downloading that...
It generates random numbers, so if you're not sophisticated enough to mash the number pad with your fist...I recommend it!  :)

Im also surprised pscode would even have this on their server...

That's why I put the three smileys after it :)
Title: Re:cd key generator
Post by: Lenny on October 22, 2003, 09:41 PM
Quote from: iago on October 22, 2003, 04:32 PM
psscript allows submissions by anybody, I dont think they're filtered unless somebody complains.

Private Sub cmdGenerate_Click()
   'get 4 random numbers
   txt1.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 5 random numbers
   txt2.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 4 random numbers
   txt3.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
End Sub


That's even a very good way to do it.. they should at least generate all 5 digits at the same time!

Wouldnt you need randomize() or it would generate the same set of  numbers every time cmdGenerate is called?
Title: Re:cd key generator
Post by: Tuberload on October 22, 2003, 10:00 PM
points out 'Rnd' I believe that is vb's method of generating random numbers... I havn't used vb in a long time so I might be wrong.
Title: Re:cd key generator
Post by: Spht on October 22, 2003, 10:05 PM
Quote from: Lenny on October 22, 2003, 09:41 PM
Quote from: iago on October 22, 2003, 04:32 PM
psscript allows submissions by anybody, I dont think they're filtered unless somebody complains.

Private Sub cmdGenerate_Click()
   'get 4 random numbers
   txt1.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 5 random numbers
   txt2.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
   'get 4 random numbers
   txt3.Text = Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9) & Int(Rnd * 9)
End Sub


That's even a very good way to do it.. they should at least generate all 5 digits at the same time!

Wouldnt you need randomize() or it would generate the same set of  numbers every time cmdGenerate is called?

Everyone knows that Randomize initializes Rnd's random number generator, so it wasn't totally necessary to include it in the sample he pasted. And since you should only initiate it once, he'd have to show calling it on the application startup and such, which would take up more lines for such a trivial thing.