Skip to content

Codeblack551/Serial-Number-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serial Number System

An extremely basic serial number and HWID lock system for selling VB.NET and C# programs!

5.4289235e+26 total serial keys

Setup

SQL

Enter PHPMyAdmin, make a new database named "serial".

Click on the "SQL" tab and enter

CREATE TABLE `serial`.`serial`(
    `id` INT NOT NULL AUTO_INCREMENT,
    `serial` VARCHAR NOT NULL,
    `hwid` VARCHAR NOT NULL,
    PRIMARY KEY(`id`)
) ENGINE = InnoDB;

then hit "Go"

Web Files

Edit serialcheck.php from

$link = mysqli_connect('localhost','root','');
$database = mysqli_select_db($link,'serial');

to match your SQL login! (Example)

$link = mysqli_connect('localhost','user','password');
$database = mysqli_select_db($link,'serial');

Now edit generateserial.php

$servername = "localhost";
$username = "root";
$password = "";
$dbname = "serial";

(Yes I know 2 different login forms is trash but whatever.

Application

Edit line 81 and 122 from

WebBrowser1.Navigate("http://localhost/serial/serialcheck.php?serial=" + TextBox1.Text + "&hwidin=" + TextBox2.Text + "&submit=Submit")

To

WebBrowser1.Navigate("http://YOURDOMAINGOESHERE.com/PATH/TO/serialcheck.php?serial=" + TextBox1.Text + "&hwidin=" + TextBox2.Text + "&submit=Submit")

Finally, edit lines 99-106 to be something like:

            ElseIf (WebBrowser1.DocumentText.Contains("1")) Then
                check = 0
                Button1.Enabled = True
                My.Settings.Installed = True
                My.Settings.Serial = TextBox1.Text
                My.Settings.Save()
                Timer1.Stop()
                Form2.Show()

And build your program on Form2

Best of luck!

Credits

JackkTutorials for the HWID creation and encryption code.

About

A VB.NET serial number system with a HWID lock for selling your programs!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published