Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
/nvdcve2jsonPublic archive

Pipe-able parser from XML to JSON of the nvdcve list.

License

NotificationsYou must be signed in to change notification settings

ghostbar/nvdcve2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCONTINUED: Since October 16th, 2019, the NVD discontinued support for XML Data Feeds. You canread more here. There are JSON data feeds available that are going to be discontinued by the end of 2023. They recommend to use their API instead.

Pipe-able parser from XML to JSON of the nvdcve list.

HOW DO I USE IT?

First, install it with:

go get github.com/ghostbar/nvdcve2json

Or just go to thereleasespage and download the binary for your system.

Then, just run it like:

$GOPATH/bin/nvdcve2json < nvdcve-2.0-2016.xmlcurl https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-Recent.xml.gz | \  gunzip - | $GOPATH/bin/nvdcve2json$GOPATH/bin/nvdcve2json --input nvdcve-2.0-2016.xml$GOPATH/bin/nvdcve2json --input nvdcve-2.0-2016.xml > nvdcve-2.0-2016.json

More help can be found on$GOPATH/bin/nvdcve2json --help.

WHAT ABOUT FILTERING STUFF OUT?

You can use the flag--filter sincev1.0.0 to just get the CVEs you want,like:"cpe:/o:apple:mac_os_x", thennvdcve2json will use the logical testson thevulnerable-configuration field to determine if thatcpe stringmatches any of the CVEs and will print out just that.

Protip: you can send multiple--filter, like:

curl https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-Recent.xml.gz | \  gunzip - | $GOPATH/bin/nvdcve2json --filter "cpe:/o:apple:mac_os_x"  --filter "cpe:/o:microsoft:windows" > cves-for-mac-n-windows.json

AUTHOR AND LICENSE

© Jose-Luis Rivas<me@ghostbar.co>.

This software is licensed under the MIT terms, a copy of the license can befound in theLICENSE file in this repository.


[8]ページ先頭

©2009-2025 Movatter.jp