Alfredo Pons Menargues
Alfredo Pons Menargues

Reputation: 166

Get the serial ARM CPU information with a C/C++ program

I can get the serial ARM CPU (Raspberry Pi) information with a C/C++ program. I could get this information from /proc/cpuinfo but then it is very easy to hack the program. Does anyone know how can the serial number obtained through C/C++? I want to use the serial number for cryptographic operations.

Upvotes: 0

Views: 2508

Answers (1)

Eugen Rieck
Eugen Rieck

Reputation: 65244

This one is easy: Start with fd=fopen("/proc/cpuinfo", "r");

What I ofcourse mean, that to distrust /proc/cpuinfo means to distrust the running kernel - under this premise, all bets are off.

If you want to build a DRM system (i.e. software bound to a physical device), please remember: The first rule of DRM is, that DRM doesn't work.

Upvotes: 3

Related Questions