Question : vb.net sata hard drive serial number

hello there,
I would like to know whats the best way to get the SATA serial number of a hard drive?

Answer : vb.net sata hard drive serial number

Using WMI isn't secure for licensing... all somebody has to do is change registry keys such as
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0

with regedit or a VBS script, and then your licensing has been compromised. The WMI calls do not query the hardware, they query the registry.  

Not only that, but you make it really easy for somebody who wants to crack your code by putting known values in the registry, like all zeros, calling your licensing, and seeing what hashed or encrypted value you turn it into before checking for a match in a license key.

You have to write code that directly queries the hardware, not code that queries a field that can easily be changed by built-in software like regedit, or a few lines of VBS code.


Random Solutions  
 
programming4us programming4us