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
.
You need to use the CPUID instruction.
Most C compilers have some support for inline assembly, but you will need to know what you are doing.