From da2d9535b78a6b3344de3a698f4243511c249484 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Tue, 14 Dec 2010 03:55:03 +0000 Subject: Add some scripts to check our CVE list against Red Hat's Try with: cd check-external && ./update.sh && ./lookup.sh CVE-2010 git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@15701 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- check-external/update.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 check-external/update.sh (limited to 'check-external/update.sh') diff --git a/check-external/update.sh b/check-external/update.sh new file mode 100755 index 0000000000..cf75051fba --- /dev/null +++ b/check-external/update.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +#################### +# Copyright (C) 2010 by Raphael Geissert +# +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +#################### + +# Note: The downloaded html files are Copyright by Red Hat, Inc. +# or as specified at the individual html files or elsewhere on redhat.com's website + +set -e + +for year in $(seq 1999 $(date +%Y)); do + wget -N https://www.redhat.com/security/data/cve/cve-$year.html +done + +sed -rn '/CVE-[12][0-9]{3}-/{s/^.+>(CVE-[12][0-9]{3}-[0-9]{4})<.+$/\1/;p}' cve-*.html > cve.list -- cgit v1.2.3