From: Muli Ben-Yehuda (mulix_at_nonexisting.hamakor.org.il)
Date: Sun 18 Jan 2004 - 11:00:54 IST
On Sun, Jan 18, 2004 at 10:27:20AM +0200, David Sapir wrote:
> Hi,
> I need to identify a computer in a unique way. Can anyone point me to
> source code in C or C++ that gets from the system:
There is no way to do this, in the general case, except maybe by using
the CPU ID, which doesn't exist on most CPUs and is disabled on most
of the rest. You can take a look under /proc/* to see most of these
values, though. You should also add the MAC address.
> BIOS ID
> HardDisk ID
> Volume ID
> Motherboard ID
> CPU ID
>
> I'm using Linux Red Hat 9.0
>
> This code should work on various hardware configurations.
>
> I already looked for it using Google, but I had no luck.
A better question would be why do you need it. If it's for copy
protection, forget about it - it's trivial to defeat, not to mention
highly obnoxious.
Cheers,
Muli
-- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ "the nucleus of linux oscillates my world" - gccbot@#offtopic
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Sun 18 Jan 2004 - 11:10:12 IST