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
.
Under Linux, you could use "lshw -quiet -xml" and parse its output. You'll find plenty of system information here: cpuid, motherboard id and much more.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With