2017 © Pedro Peláez
 

library cpe

image

pacificsec/cpe

  • Monday, April 2, 2018
  • by antoniomrfranco
  • Repository
  • 2 Watchers
  • 0 Stars
  • 506 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 3 Versions
  • 30 % Grown

The README.md

Common Platform Enumeration for PHP

CPE (this code) is a MIT licensed PHP package, implementing the CPE standards., (*1)

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., (*2)

For more information, please visit the official website of CPE, developed by MITRE and maintained by NIST., (*3)

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);

The Versions

02/04 2018

0.1

0.1.0.0

  Sources   Download

02/04 2018

1.0.0

1.0.0.0

  Sources   Download

25/01 2018

dev-master

9999999-dev https://github.com/pacificsec/cpe

CPE: Common Platform Enumeration for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Antonio Franco

security cve cpe pacificsec