CrazyEngineers
  • Identifying a Unique Hardware based on Disk Signature

    gaurav.bhorkar

    gaurav.bhorkar

    @gauravbhorkar-Pf9kZD
    Updated: Oct 22, 2024
    Views: 1.1K
    I am developing a software which employs product activation. We need to bind our software to only one machine, i.e. the user must not be able to activate his copy on more than one computer.

    After a lot of searching I found out that using the MAC address of the NIC we can generate a unique hardware ID. But there are various ways to spoof the MAC easily.

    There are other serial numbers too like the Motherboard serial, CPU Id, etc. but I found that many hardware manufactures leave them blank, they just print the serial on the physical hardware.

    Another way is to use the Hard Disk signature generated by Windows when it is installed on that disk for the first time. The Disk signature seems to good for our purposes, but I have several queries:

    1. Is the Disk Signature unique across all disks?
    2. Will the signature change when the user installs a new copy of Windows?
    3. Can the Disk Signature be changed easily by users?
    4. Is it advised to rely on the Disk Signature for generating a Unique hardware ID for a system?
    I hope you got what I am trying to say.
    For programmer's reference, here's how I get the signature using C++/CLI and WMI classes.
    ManagementClass ^mc = gcnew ManagementClass("Win32_DiskDrive");
    ManagementObjectCollection ^moc = mc->GetInstances();
    Console::WriteLine("Signature of Hard Disk");
    for each (ManagementObject ^mo in moc)
    {
        try
        {
            Console::WriteLine("Signature = " + mo["Signature"]);
        }
        catch (Exception ^e)
        {
            Console::WriteLine( "Exception : " + e->Message );
        }
    }
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • gaurav.bhorkar

    MemberJun 8, 2011

    Bump!

    Any suggestions? Come on guys!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register