HWID System

Blessing

User is banned.
Reputation
0
To find out what your HWID is:

Make 1 textbox.

Ok let's start, start with importing the System Management:
[vb]Imports System.Management[/vb]

Put this anywhere, but has to be below Form1 code:
[vb]Public Function GetHDSerial() As String
Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""")
Dim diskPropertyA As PropertyData = _
disk.Properties("VolumeSerialNumber")
Return diskPropertyA.Value.ToString()
End Function[/vb]

In Form_Load, put this code:
[vb]TextBox1.Text = GetHDSerial()[/vb]

So when you open the program, it will automatically tell you your HWID ::yeye::

---------------------------------------------------------------------------------------

Program HWID protection

Do the thing same thing as I did in the top tut.
But make 1 button. Name it Login

Then put this code in Button1:
[vb]Dim rt As New WebClient
Dim rs As String = rt.Downloadstring("http://www.yoursite.com/hwid.txt")
If rs.Contains(GetHDSerial()) Then
Form2.Show()
Else
MessageBox.Show("Access Denied. Now Closing!", "Information")
Me.Close
End If[/vb]

Then make a hwid.txt and put the people's HWID into the hwid.txt if you want them to have login access. Make sure it's a new line for each HWID. Then in http://www.yoursite.com/hwid.txt, edit http://www.yoursite.com to your site link and include /hwid.txt at the end.

Now your done!
The program checks if the person's HWID is in hwid.txt and if it's not a msgbox comes out and program closes. If the person's HWID is in hwid.txt, Form2 opens.
 
I used to use this for my first ever program a few years ago xD

Very simple but effective, ive recently developed it to use SQL though and made a app to upload new HWIDs so I dont have to keep accessing my server.
 
Yer i did do. I can assign new HWIDs and see current licenses in a app made in VB.

Tbh, it does the same job as your nice source, just its a bit fancier :p
 
Relouded if you want to tell somone there are errors in their code can you please tell them how many ther are and also what and where they are (ex. on line 1 ther is an error: (then specify the error)).
 
Relouded explain the error please.
 
Haha this is good for beginners but, if your serious you might want to integrate some anti's and other protection methods.
I will probably make a thread later.
 
I do like this idea, but its a bit long winded and often the people who use the software dont want to be in contact with the creator of the software. Otherwise they have to wait until they are onling etc.

I havent really researched it, but I much prefer a system where you can download the software for free, but to actually get it to run you must have a liscense file.

There is a program outside of Visual Studio etc, that does this but there has to be some sort of code that lets you implement it into your application.
 
Back
Top