LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   HOWTO access Processor ID / other unique values?? (https://www.linuxquestions.org/questions/linux-security-4/howto-access-processor-id-other-unique-values-301747/)

kartheekpn 03-15-2005 01:12 AM

HOWTO access Processor ID / other unique values??
 
Hi,
can anyone please tell me how to obtain a processor's unique ID (if such a thing exist, which I believe does)? Or maybe some other unique number such as the Harddrive's serialnumber or mother boards unique id something. I need it to copy-protect a program which is nearly ready for distribution. Any references to tutorials of related subjects would also be much appreciated.
regards
Kartheek

Darin 03-15-2005 02:54 AM

cat /proc/cpuinfo

Does that give the info you want?

kartheekpn 03-15-2005 03:17 AM

no, i tried ther no luck

Darin 03-15-2005 07:46 AM

I don't have a CPU with an ID, so I wasn't sure if I was not seeing it in /proc/cpuinfo because it doesn't show it or because I don't have one, guess it's not there. If you are just looking for something unique, maybe try one of these:

hdparm -i /dev/hda: hard drive info
ifconfig eth0: NIC's MAC address is unique, but easily spoofed
look through the info files in /proc for something else unique

kartheekpn 03-15-2005 09:57 AM

thanx, i will try thoes.
but i found files called 'cpuid' [its orange colored and not openable by vi or cat ] in /dev/cpu/0
and another in/dev/cpu/1 and so on...
any idea regarding thoes files.

nayaksoft 03-20-2005 04:10 AM

Google is the best Friend , u find lots of utility to know the processor id , try cpuid a utility for linxu

Hope this will solve ur problem

Regards...
Nayak Sibananda (Reliance Infocomm)


All times are GMT -5. The time now is 09:29 PM.