summaryrefslogtreecommitdiffstats
path: root/bin/compare-nvd-cve
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@debian.org>2016-12-22 11:23:31 +0000
committerPetter Reinholdtsen <pere@debian.org>2016-12-22 11:23:31 +0000
commitc10fd9739ba87f3cf5c41a42bde5a2e168431996 (patch)
tree4605bd6808b6888962f5f510cdac0c6cd467ebf9 /bin/compare-nvd-cve
parent8d9b3cfab3128f7fe970935cdffa3e8fc55f781b (diff)
Document how to run bin/compare-nvd-cve.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@47337 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/compare-nvd-cve')
-rwxr-xr-xbin/compare-nvd-cve11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/compare-nvd-cve b/bin/compare-nvd-cve
index b2aa206eec..1fffbde745 100755
--- a/bin/compare-nvd-cve
+++ b/bin/compare-nvd-cve
@@ -45,10 +45,15 @@ while (<$fh>) {
close $fh;
#
-# Fetched from http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2008.xml
+# Fetched from http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2016.xml.gz
#
for my $cvelist
(
+ "nvdcve-2.0-2016.xml",
+ "nvdcve-2.0-2015.xml",
+ "nvdcve-2.0-2014.xml",
+ "nvdcve-2.0-2013.xml",
+ "nvdcve-2.0-2012.xml",
"nvdcve-2.0-2011.xml",
"nvdcve-2.0-2010.xml",
"nvdcve-2.0-2009.xml",
@@ -57,9 +62,11 @@ for my $cvelist
"nvdcve-2.0-2006.xml",
"nvdcve-2.0-2005.xml",
"nvdcve-2.0-2004.xml",
+ "nvdcve-2.0-2003.xml",
+ "nvdcve-2.0-2002.xml",
) {
print STDERR "Loading $cvelist\n" if $debug;
- my $ref = XMLin("../../" . $cvelist);
+ my $ref = XMLin("data/nvd2/" . $cvelist);
for my $cve (sort {$b cmp $a} keys %{$ref->{entry}}) {
print STDERR "Checking $cve\n" if $debug;
my $entry = $ref->{entry}->{$cve};

© 2014-2024 Faster IT GmbH | imprint | privacy policy