Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
go-cpe — 一个用于 CPE(通用平台枚举 2.3)的 Go 库 | Kitploit
工具/GitHubGitHub/knqyf263/go-cpe
漏洞分析信息收集实用工具与框架威胁情报
GitHubknqyf263/go-cpe

go-cpe

一个用于 CPE(通用平台枚举 2.3)的 Go 库

查看仓库
41123年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

go-cpe

Build Status Coverage Status Go Report Card GoDoc MIT License

一个用于 CPE(通用平台枚举 2.3) 的 Go 库

go-cpe 是 CPE 命名与匹配算法的一种实现,如 NIST IR 7695 和 7696 所述。

有关参考 Java 实现,请参阅:https://cpe.mitre.org/specification/CPE_Reference_Implementation_Sep2011.zipx

安装与使用

可以通过常规的 go get 完成安装:

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

比较

参见示例

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

贡献

  1. 派生(fork)一个仓库:github.com/knqyf263/go-cpe 到 github.com/you/repo
  2. 获取原始代码:go get github.com/knqyf263/go-cpe
  3. 在原始代码上进行修改
  4. 为你的仓库添加 remote:git remote add myfork https://github.com/you/repo.git
  5. 推送你的更改:git push myfork
  6. 创建一个新的 Pull Request
  • 参见 GitHub 与 Go:fork、pull request 与 go-get

许可证

MIT

作者

Teppei Fukuda

下载工具