sealution / mac-resolver
Laravel MAC 地址详细信息解析器。
1.0.1
2022-11-03 15:00 UTC
Requires
- php: ^8.0
- illuminate/console: ^v9.0
- illuminate/database: ^9.0
- illuminate/filesystem: ^9.0
This package is auto-updated.
Last update: 2024-09-30 02:02:52 UTC
README
此 PHP 包允许您从 Laravel 应用程序中获取与 IEEE OUI 分配相关的信息。
mac-resolver 包从 IEEE 网站下载 CSV 格式的 OUI 映射信息。然后它处理 CSV 文件,并将 OUI 分配的详细信息存储在数据库的表中。
安装
您可以通过 composer 安装此包
composer require sealution/mac-resolver
然后使用此命令发布资产
php artisan mac:install
发布资产(配置和迁移)后,运行 artisan migrate
php artisan migrate
用法
获取 MAC 地址详情
您可以在控制台中使用 "php artisan mac: details" 获取供应商详情以及 OUI 分配详情。
php artisan mac:details <mac-address>
php artisan mac:details 00-15-5D-81-E0-B0
Vendor details
------------- ---------------------------------------------
OUI 00155D
MAC Address 00-15-5D-81-E0-B0
Vendor Microsoft Corporation
Address One Microsoft Way Redmond WA US 98052-8300
Is Private false
------------- ---------------------------------------------
Block details
------------------- -------------------
Registry MA-L
Assignment bits 2^24
Block Size 16,777,216
Lower MAC Address 00:15:5D:00:00:00
Upper MAC Address 00:15:5D:FF:FF:FF
Last Update Unknown
------------------- -------------------
MAC Address details
--------------------- ----------------------------------------
MAC Address 00-15-5D-81-E0-B0
Administration byte UAA (Universally Administered Address)
Group byte Individual address
Virtual Machine true
Is Multicast false
Is Unicast false
Is Valid true
--------------------- ----------------------------------------
获取供应商详情
您可以在控制台中使用 "php artisan mac:vendor" 获取与 OUI 分配相关的供应商详情。
php artisan mac:vendor <mac-address>
php artisan mac:vendor 00-15-5D-81-E0-B0
------------- -----------------------
OUI 00155D
MAC Address 00-15-5D-81-E0-B0
Vendor Microsoft Corporation
Registry MA-L
------------- -----------------------
安全漏洞
如果您发现任何安全相关的问题,请在该 GitHub 存储库中打开一个问题(
致谢
许可协议
此包 Ping 是开源包,并使用 MIT 许可证(MIT)许可。请参阅 许可文件 获取更多信息。