1.准备工作
安装php,并已经配置好环境变量path
2.运行hardware.sh获取机器码
shell> php ./hardware.sh
3.脚本内容
#!/usr/bin/env php
<?php
function command_hardware()
{
if(function_exists('zend_loader_enabled') && zend_loader_enabled())
{
foreach (zend_get_id() as $hardware) {
echo $hardware, "n";
}
} else {
echo 'zend guard loader not installed or not enabled!';
exit;
}
}
command_hardware();
最后
以上就是温暖电脑最近收集整理的关于Linux获取机器码的全部内容,更多相关Linux获取机器码内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复