![]() |
|
[.NET] [TUT] How to Create a Keygen using Visual Basic 8 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [TUT] How to Create a Keygen using Visual Basic 8 (/showthread.php?tid=409032) Pages: Pages
1
2
|
[TUT] How to Create a Keygen using Visual Basic 8 - Th3 Jok3r - May 8, 2010 Hey everyone, in this tutorial i would like to teach you how to create a keygen using Visual Basic 8. Description: A keygen means a program that generate keys for a certain program. Preparation: 1. Get Visual Basic if you don't have it (Download link) 2. Think of what should your keygen be (e.g. Windows Key Generator, Kaspersky Keygen and such) 3. Plan on what you want to include in your keygen 4. Plan on what you should include in your keygen 5. [optional] Getting an icon (You convert any image file to an icon file here. Steps: 1. Create a project Open Visual Basic 8 and create a Windows Form Application. Name it as the keygen you want to make. In this tutorial, i will make a Windows 7 Keygen as an example. [img]http://img220.imageshack.us/img220/5807/88902635.png[/img] 2. Edit the project properties When you've done creating the project, now you have to change the project's properties. In the box at the bottom right hand side of the project, that's where you change the properties for everything. Click on the form and change the properties as below: Text - Change it to the title of the keygen you want. Icon - Changing the icon can make it looks more professional. If you don't want to show an icon, turn ShowIcon to False FormBorderStyle - You can leave it there, or change to a style you like. Usually i change it to FixedSingle, because people won't be able to resize the program. [img] http://img213.imageshack.us/img213/3620/65636137.png[/img] 3. Adding items into your project Now you should add some items into your keygen. These are the things you should contain in a keygen: Button - To generate the key after you clicked it Textbox - To show the key after you clicked the button Title - Some texts can be the on the top of the keygen, but adding a picture as a title will make it looks professional ComboBox/RadioButton - If you have multiple type of keys to generate, this is a must have. Labels - To tell people what is the function for. To add items into your keygen, look at the toolbox at the left of your project. Simply drag the item that you want and put it into your project. It will appear there, and you can put it in where you like. 4. Finding a logo Now you should find a logo to put into your keygen. The logo must be related to the program of the keygen. You can google the logo of the program and add some text into it. This is what i made for mine: [img]http://img32.imageshack.us/img32/5243/windowsicon2.png[/img] Once you got your logo ready, insert a PictureBox into your project and insert the picture into it. 5. Insert the data into your project Once you've inserted your logo, you can start to put in the required data into your project. Insert a label and change the Text to "Select the version you want:" or something like that. Once you've done that, you can now proceed to the ComboBox/RadioButton. Here i will use ComboBox because it's much more easier to use. To change the data in the ComboBox, click on the ComboBox and click Items in the Properties. 6. Inserting your keys into the keygen Now you can start inserting the keys into your keygen. These keys will be shown when you click the Generate Button. Double click the Generate button and paste the following into the code: Code TextBox1.Text = Int(Rnd() * 4)02-24-2010, 02:57 PM #1 Default [TUT] How to Create a Keygen using Visual Basic 8 Hey everyone, in this tutorial i would like to teach you how to create a keygen using Visual Basic 8. Description: A keygen means a program that generate keys for a certain program. Preparation: 1. Get Visual Basic if you don't have it (Download link) 2. Think of what should your keygen be (e.g. Windows Key Generator, Kaspersky Keygen and such) 3. Plan on what you want to include in your keygen 4. Plan on what you should include in your keygen 5. [optional] Getting an icon (You convert any image file to an icon file here. Steps: 1. Create a project Open Visual Basic 8 and create a Windows Form Application. Name it as the keygen you want to make. In this tutorial, i will make a Windows 7 Keygen as an example. [img]http://img220.imageshack.us/img220/5807/88902635.png[/img] 2. Edit the project properties When you've done creating the project, now you have to change the project's properties. In the box at the bottom right hand side of the project, that's where you change the properties for everything. Click on the form and change the properties as below: Text - Change it to the title of the keygen you want. Icon - Changing the icon can make it looks more professional. If you don't want to show an icon, turn ShowIcon to False FormBorderStyle - You can leave it there, or change to a style you like. Usually i change it to FixedSingle, because people won't be able to resize the program. [img]http://img213.imageshack.us/img213/3620/65636137.png[/img] 3. Adding items into your project Now you should add some items into your keygen. These are the things you should contain in a keygen: Button - To generate the key after you clicked it Textbox - To show the key after you clicked the button Title - Some texts can be the on the top of the keygen, but adding a picture as a title will make it looks professional ComboBox/RadioButton - If you have multiple type of keys to generate, this is a must have. Labels - To tell people what is the function for. To add items into your keygen, look at the toolbox at the left of your project. Simply drag the item that you want and put it into your project. It will appear there, and you can put it in where you like. 4. Finding a logo Now you should find a logo to put into your keygen. The logo must be related to the program of the keygen. You can google the logo of the program and add some text into it. This is what i made for mine: [img]http://img32.imageshack.us/img32/5243/windowsicon2.png[/img] Once you got your logo ready, insert a PictureBox into your project and insert the picture into it. 5. Insert the data into your project Once you've inserted your logo, you can start to put in the required data into your project. Insert a label and change the Text to "Select the version you want:" or something like that. Once you've done that, you can now proceed to the ComboBox/RadioButton. Here i will use ComboBox because it's much more easier to use. To change the data in the ComboBox, click on the ComboBox and click Items in the Properties. 6. Inserting your keys into the keygen Now you can start inserting the keys into your keygen. These keys will be shown when you click the Generate Button. Double click the Generate button and paste the following into the code: Code: TextBox1.Text = Int(Rnd() * 4) Select Case TextBox1.Text Case 0 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" Case 1 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" Case 2 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" Case 3 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" Case 4 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" Case 5 TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" End Select Replace the XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with some random numbers and alphabets. [img]http://img213.imageshack.us/img213/1672/92874144.png[/img] 7. Finalizing and building your keygen Now you have already reached the last step of building your keygen! Press F5 and debug your project and test whether the buttons are working or not. When you're done, click Build on the top menu and click Build {ProjectName}. [img]http://img297.imageshack.us/img297/6214/67805702.png[/img] To see your built keygen, go to Documents\Visual Studio 2008\Projects\{ProjectName}\{ProjectName}\Bin\Rele ase\{ProjectName}.exe * - CometJack - May 8, 2010 This isn't an actual "keygen". Quote:The author of a keygen typically uses a disassembler to look at the raw assembly code of the targeted program, checking either the software itself or the installer. Once access has been obtained to the program's code, the location of the subroutine(s) responsible for verifying that the key entered is valid are found. Using this knowledge, the algorithm may be reverse engineered to generate valid keys, which is then incorporated into the keygen. * - Exploitations - May 8, 2010 (May 8, 2010 12:54 PM)CometJack Wrote: This isn't an actual "keygen". I guess it could be if you put actual working serials in lol * - CometJack - May 8, 2010 (May 8, 2010 12:58 PM)Cryogeniks Wrote: I guess it could be if you put actual working serials in lol No, a keygen will generate a numerous amount of valid keys that are generated by reverse engineering the targeted application, as from my quote. OP just basses the 5 keys he put into it off a random chance of a number being a certain value. * - Th3 Jok3r - May 8, 2010 Correct CometJack,glad you guy's like the tut:) * - CometJack - May 8, 2010 (May 8, 2010 01:03 PM)Th3 Jok3r Wrote: Correct CometJack,glad you guy's like the tut:) The tutorial is nice, it's just this isn't an actual keygen. * - Th3 Jok3r - May 8, 2010 Yes it is a keygen,I put real serials for it! * - Jon865 - May 12, 2010 (May 8, 2010 01:04 PM)CometJack Wrote: The tutorial is nice, it's just this isn't an actual keygen. I agree also that this is not a "true" keygen, but a pretty interface for displaying already harvested keys. Wikipedia defines it as: "A keygen (an abbreviated form of "key generator") is a small program that will generate valid CD keys or serial/registration numbers for a piece of software." The link to it is here ---> http://en.wikipedia.org/wiki/Keygen The program does not "generate" anything, just displays them. Don't get me wrong, I think you still have a pretty decent TUT, although it should be for VB programming. ✌ * - krack0r - May 12, 2010 Good tut jok3r.but i agree with the others.i hope someone can make a tut for a "true" keygen. * - Th3 Jok3r - May 13, 2010 This is a true keygen! * - codepoet - May 13, 2010 i belive what the mean by true keygen is... actual method of finding the key to the program and not key that you put in it your self..... * - Th3 Jok3r - May 17, 2010 Yeah,these key's work,So it is a keygen! * - Fullmetal2 - May 17, 2010 (May 13, 2010 02:09 PM)crow407 Wrote: i belive what the mean by true keygen is... actual method of finding the key to the program and not key that you put in it your self..... owh i knew what u mean now =] this is same way lik save key on text then read the key on text .sry if i wrong? :P * - BaNNED - May 17, 2010 I call it "Key Displayer" . But Good Tutorial , mate :) * - -iCode - May 17, 2010 this isnt a keygen but a nice serial shower but its still a well written tut (May 17, 2010 03:15 PM)Th3 Jok3r Wrote: Yeah,these key's work,So it is a keygen! just because they work does not mean its a keygen. your program will only display 5 keys a keygen can produce infinite |