Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C#] HWID Lock
#1
C# Hwid Lock, No encryption method or anything more, just checking the HWID.

Using;
Code:
using System;
using System.Management;
using System.Windows.Forms;

Project > Add Reference, Click the .NET Tab and find "System.Management" Click it then press ok, Now enter this code into Form1_Load (or what ever your form's named)

Code:
string cpuInfo = string.Empty;
            ManagementClass mc = new ManagementClass("win32_processor");
            ManagementObjectCollection moc = mc.GetInstances();
            foreach (ManagementObject mo in moc)
            {
                if (cpuInfo == "")
                {
                    cpuInfo = mo.Properties["processorID"].Value.ToString();
                    break;
                }
            }
            System.Net.WebClient Wc = new System.Net.WebClient();
            string hwid = Wc.DownloadString("http://www.YourSite.com/Hwid.txt");
            if (hwid.Contains(cpuInfo))
            {
            }
            else
            {
                MessageBox.Show("Your HWID Doesn't exist in our database");
                Environment.Exit(-1);
            }
            Wc.Dispose();

Victoire
Reply
#2
Thanks, It's Hard To Do Things Like This In C# .NET
Reply
#3
Nice share, it's basic HWID protection but it work like a charm.
Thanks
Reply
#4
Yeah this is pretty basic, might use this when i get my new computer as well.
Reply
#5
wrong section ?
Reply
#6
(06-07-2010, 04:47 PM)robbiecee2 Wrote: wrong section ?

How is this the wrong section?
Reply
#7
thanks i really needed this!
[Image: steamaccount.png]
I live my life a quarter mile at a time.
For those ten seconds or least I'm free, nothing else matter.
Reply
#8
thanks its use fulll
Reply
#9
Sorry to bump this but it really helped me out! I know it's not too advanced but it's exactly what I was looking for; thanks!
Reply
#10
Thank you for this, it helped me a bit.
[Image: dHtHt.png]

Learning C++
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Guidtech [Better then HWID][WITH VB FILES!] The-One 5 7,046 08-07-2015, 06:18 AM
Last Post: darknessxk
  HWID/LOGIN SYSTEM(Help) Coding Support 5 2,400 01-08-2012, 11:57 AM
Last Post: ★Cooldude★
  Decent HWID System? lolwtfhax 9 3,058 09-29-2011, 11:05 AM
Last Post: Relapse
  [C#] Offline Login Sytem (Serial generator, HWID, Expiration)[Source] KoBE 24 9,555 07-30-2011, 09:25 AM
Last Post: Trustable
  [Tutorial/Explaination] Secure your application better when using GUIDTech/HWID The-One 0 1,441 06-03-2011, 08:56 AM
Last Post: The-One

Forum Jump:


Users browsing this thread: 4 Guest(s)