获取CPU或主板序列号? [英] Getting CPU or motherboard serial number?

查看:189
本文介绍了获取CPU或主板序列号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于许可目的,我正在尝试使用CPython来获取CPU serialmotherboard serial.有可能吗?

I'm trying to get the CPU serial or motherboard serial using C or Python for licensing purposes. Is it possible?

我正在使用Linux.

推荐答案

您需要使用CPUID指令.

You need to use the CPUID instruction.

CPUID

大多数C编译器都支持内联汇编,但是您需要知道自己在做什么.

Most C compilers have some support for inline assembly, but you will need to know what you are doing.

这篇关于获取CPU或主板序列号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆