Build a DB with a list of files. Eg:
vulndb build nvdcve-2.0-2015.xml nvdcve-2.0-2014.xml
vulndb build ~/Downloads/*.xml
If the DB already exists, it will throw an error. The -f
flag will force a removal of the existing database.
Searching can either be done with a CPE URI or a raw string. Omitted fields or *
will be treated as wildcards.
Example:
vulndb search cpe:/o:microsoft
vulndb search cpe:/o:microsoft:windows_8.1:*
If a raw string is used, it will do a full text search on everything.
Example:
vulndb search drupal
https://nvd.nist.gov/download.cfm#RSS
https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2015.xml.gz
Contributions are welcome.
Remco Verhoef
Code and documentation copyright 2011-2015 Remco Verhoef.
Code released under the MIT license.