pacificsec/cpe
最新稳定版本:1.0.1
Composer 安装命令:
composer require pacificsec/cpe
包简介
CPE: Common Platform Enumeration for PHP
关键字:
README 文档
README
CPE (this code) is a MIT licensed PHP package, implementing the CPE standards.
About the CPE standard
Common Platform Enumeration (CPE) is a standardized method of describing and identifying classes of applications, operating systems, and hardware devices present among an enterprise's computing assets.
For more information, please visit the official website of CPE, developed by MITRE and maintained by NIST.
Features
- CPE rich comparison.
- CPE Language parsing and evaluation.
- MIT Licensed.
Getting Started
- Clone repository
$ git clone https://github.com/pacificsec/cpe.git
$ cd cpe
- Create a new PHP file to run tests
<?php require('autoload.php'); use PacificSec\CPE\Matching\CPENameMatcher; use PacificSec\CPE\Naming\CPENameUnbinder; use PacificSec\CPE\Naming\CPENameBinder; CPENameMatcher::test(); CPENameUnbinder::test(); CPENameBinder::test();
<?php require('autoload.php'); use PacificSec\CPE\Naming\CPENameUnbinder; $cpenu = new CPENameUnbinder(); $wfn = $cpenu->unbindURI("cpe:/a:microsoft:internet_explorer%01%01%01%01:?:beta"); var_dump($wfn); $wfn = $cpenu->unbindURI("cpe:/a:microsoft:internet_explorer:8.%2a:sp%3f"); var_dump($wfn); $wfn = $cpenu->unbindURI("cpe:/a:microsoft:internet_explorer:8.%02:sp%01"); var_dump($wfn); $wfn = $cpenu->unbindURI("cpe:/a:hp:insight_diagnostics:7.4.0.1570::~~online~win2003~x64~"); var_dump($wfn); $wfn = $cpenu->unbindFS("cpe:2.3:a:micr\\?osoft:internet_explorer:8.0.6001:beta:*:*:*:*:*:*"); var_dump($wfn);
统计信息
- 总下载量: 40.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-04