Support Forums

Full Version: [TuT]How to create a keygenerator in VB.NET [TuT]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi everyone.

Today, I will be showing you how to make a good-looking keygenerator in VB.NET.

Q. What is a keygenerator?

A. A keygenerator, (or sometimes shortened as keygen)

is a program or tool that generates a keygen. Although some keygens are fake and are binded with malware using a binder, some do actually work.

I'll be showing you how to make a fake one, I'll be showing you step by step what to do.

1. Open up a new VB.NET project.
You'll see a blank square. That's called the form.

On your left, is a big box of tools, which is known as the Toolbox.

It includes many tools, such as buttons, textboxes, labels, etc;

Let's say today we are going to make a Win7 Pin generator.




Onto your form, drag a button, a textbox, and 2 labels.

Right-click on your button. And choose properties, in properties, where it says text put in Generate.

(keep in mind we are generating fake keys)

Now, go to properties for label1, and in text, put Key : and put it right on top of textbox1.

It will notify the user that what comes out of the textbox is our key.

For properties of textbox, put ReadOnly to true.

What does that mean?

That means that what comes out of the textbox will not be editable, hence you can only read it, 'ReadOnly.'

For properties of label2, in text, put nothing at all, so it should be invisible to the naked eye.

Now, double-click on your button.

You will see about 4 lines of code, which mean that when button is clicked on, this function will occur, but we have no function, so when our button is clicked on, nothing happens.

Now, put in this code :
Code:
TextBox1.Text = Int(Rnd() * 4)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "Random key1"
Case 1
TextBox1.Text = "Random key2"
Case 2
TextBox1.Text = "Random key3"
Case 3
TextBox1.Text = "Random key4"
End Select
'number of cases you have, the more keys you will have
'which means the more releastic and appealing it will look to user
'you can add more cases if you like

All that means that when button is clicked on, we will generate one out of four of any of those codes right into the textbox, and each one is different, so that means it will look more realistic.


Now, that's it! It now works. It generates keys. Now, we want the program to look nice and appealing, we need to add a icon, name, and backround image to the program.

For our tutorial, it is a Win7 pin generator, so name it that. (by going to form-properties-text)

You can add a icon by going to properties and going to icon, and browsing for a icon that relates to Windows 7.

You can add a backround image if you like, such as this one :

http://www.gandex.ru/upl/oboi/u2090_8297...na-wp2.jpg

Hope I have helped some people on this forum!

Bye,

Beck
Thanks, but this doesn't really generate keys, it chooses randomly between you've created.
(04-05-2010, 12:00 PM)Pi[X]el Wrote: [ -> ]Thanks, but this doesn't really generate keys, it chooses randomly between you've created.

Yeah, Thank you but I am not sure it will really work but still good guide man.
Great tutorial there, I might use this in the future.
Not bad. It could be improved and commented, but apart from that, I really like it.
(04-05-2010, 12:47 PM)Drake™ Wrote: [ -> ]Not bad. It could be improved and commented, but apart from that, I really like it.


Thanks Drake!
Seen this on YT the other day while browsing some new programs to learn to make.


You should make a full explanation video so people aren't just copy and pasting your source.
This isn't really classified as a keygen.

A keygen can generate thousands of keys. This only generates the numbers you put in.
Great tutorial. Pictures would be nice too, although it's not essential. Nonetheless, nice work.
(04-05-2010, 06:47 PM)«Ðartz™» Wrote: [ -> ]This isn't really classified as a keygen.

A keygen can generate thousands of keys. This only generates the numbers you put in.

True. But the more you put in, the better and more convincing the keygen will be.
Pages: 1 2