承接 pacificsec/cpe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-04