pythonclicensingcpumotherboard

Getting CPU or motherboard serial number?


I'm trying to get the CPU serial or motherboard serial using C or Python for licensing purposes. Is it possible?

I'm using Linux.


Solution

  • You need to use the CPUID instruction.

    CPUID

    Most C compilers have some support for inline assembly, but you will need to know what you are doing.