0

In order to recognize a computer in a certain manner (MAC adress not appropriate for some cases, disk ID or hostname neither etc.), I would like to detect a CPU id (or first CPU core id)... How can I achieve this on different platforms? (not necessarily in manner that is robust to OS change on the same computer)

Thanks

moala
  • 5,094
  • 9
  • 45
  • 66

1 Answers1

0

The CPU id identifies the processor model, and isn't unique to each computer. See: http://en.wikipedia.org/wiki/CPUID

The MAC address is usually the best way to uniquely identify a system.

payne
  • 13,833
  • 5
  • 42
  • 49
  • Indeed, but a CPU changes less often than an ethernet or wifi card, and there is always at least one, and the cores don't change of order between starts. An argument which does not give credit to you nor me: a MAC address can easily be spoofed (as much as a CPU id, without any doubt). – moala Jan 24 '11 at 14:27
  • I would not say that mac address is the best way, it is by far the easiest one to spoof. – Kimvais Jan 24 '11 at 14:37
  • But CPUIDs aren't unique -- all the systems with the same model Intel processor will have the same CPUID. What am I missing? – payne Jan 24 '11 at 14:58
  • Indeed, http://en.wikipedia.org/wiki/Pentium_III#Controversy_about_privacy_issues too bad – moala Jan 24 '11 at 17:15