GithubHelp home page GithubHelp logo

germankingyt / serial-number-system-c-sharp Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 8.0 32 KB

A C# serial number system with a HWID lock for selling your programs!

License: MIT License

C# 76.15% PHP 23.85%

serial-number-system-c-sharp's Introduction

Serial Number System C#

A remake of https://github.com/ThaisenPM/Serial-Number-System in C#

5.4289235e+26 total serial keys

Serial Number System

An extremely basic serial number and HWID lock system for selling VB.NET and C# programs! Read me is only for VB.NET, but is stupidly close to the C# one. Have fun!

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

HazardEdit for the HWID creation code.

serial-number-system-c-sharp's People

Contributors

thaisenpm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.