一个用 Go 编写的快速、简单的库,用于从 NVD(美国国家漏洞数据库)数据源获取 CVE。
go get github.com/daehee/nvd
nvd 包提供了一个 Client,用于从官方 NVD 数据源获取 CVE:
// nvd client with ./tmp working dir
client, err := NewClient("tmp")
// Fetch single CVE
cve, err := client.FetchCVE("CVE-2020-14882")
// Fetch all recently published and modified CVES
cves, err := client.FetchUpdatedCVEs()