Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
go-cpe — A Go library for CPE (A Common Platform Enumeration 2.3) | Kitploit
Tools/GitHubGitHub/knqyf263/go-cpe
Vulnerability AnalysisInformation GatheringUtilities & FrameworksThreat Intelligence
GitHubknqyf263/go-cpe

go-cpe

A Go library for CPE (A Common Platform Enumeration 2.3)

View Repository
41123 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

go-cpe

Build Status Coverage Status Go Report Card GoDoc MIT License

A Go library for CPE(A Common Platform Enumeration 2.3)

go-cpe is a implementation of the CPE Naming and Matching algorithms, as described in NIST IRs 7695 and 7696.

For the reference Java implementation, see: https://cpe.mitre.org/specification/CPE_Reference_Implementation_Sep2011.zipx

Installation and Usage

Installation can be done with a normal go get:

root@kitploit:~
$ go get github.com/knqyf263/go-cpe/...

Compare

See example

root@kitploit:~
package main

import (
	"fmt"

	"github.com/knqyf263/go-cpe/matching"
	"github.com/knqyf263/go-cpe/naming"
)

func main() {
	wfn, err := naming.UnbindURI("cpe:/a:microsoft:internet_explorer%01%01%01%01:8%02:beta")
	if err != nil {
		fmt.Println(err)
		return
	}
	wfn2, err := naming.UnbindFS(`cpe:2.3:a:microsoft:internet_explorer:8.0.6001:beta:*:*:*:*:*:*`)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(matching.IsDisjoint(wfn, wfn2))
	fmt.Println(matching.IsEqual(wfn, wfn2))
	fmt.Println(matching.IsSubset(wfn, wfn2))
	fmt.Println(matching.IsSuperset(wfn, wfn2))
}

Contribute

  1. fork a repository: github.com/knqyf263/go-cpe to github.com/you/repo
  2. get original code: go get github.com/knqyf263/go-cpe
  3. work on original code
  4. add remote to your repo: git remote add myfork https://github.com/you/repo.git
  5. push your changes: git push myfork
  6. create a new Pull Request
  • see GitHub and Go: forking, pull requests, and go-getting

License

MIT

Author

Teppei Fukuda

Download Tool