Skip to content

Commit

Permalink
feat: update kev refs
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Apr 2, 2024
1 parent 2f10584 commit 1c360ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions grab/kev.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (c *KEVCrawler) GetUpdate(ctx context.Context, pageLimit int) ([]*VulnInfo,
})
for i := 0; i < itemLimit; i++ {
var vulnInfo VulnInfo
vuln := result.Vulnerabilities[i] //排序后正向取漏洞
vuln := result.Vulnerabilities[i] // 排序后正向取漏洞
vulnInfo.UniqueKey = vuln.CveID + "_KEV"
vulnInfo.Title = vuln.VulnerabilityName
vulnInfo.Description = vuln.ShortDescription
Expand All @@ -75,7 +75,9 @@ func (c *KEVCrawler) GetUpdate(ctx context.Context, pageLimit int) ([]*VulnInfo,
vulnInfo.Solutions = vuln.RequiredAction
vulnInfo.Disclosure = vuln.DateAdded
vulnInfo.From = "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
vulnInfo.References = append(vulnInfo.References, vuln.Notes)
if vuln.Notes != "" {
vulnInfo.References = append(vulnInfo.References, vuln.Notes)
}
vulnInfo.Tags = []string{vuln.VendorProject, vuln.Product, "在野利用"}
vulnInfo.Creator = c
vulnInfos = append(vulnInfos, &vulnInfo)
Expand Down

0 comments on commit 1c360ae

Please sign in to comment.