Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 642 Bytes
### This script checks a list of CVE numbers against sarahdb
for CVE in $*; do
echo "CVE $CVE"
echo "-----------------"
echo "Matches the following advisories:"
./ "select distinct ref.advid, adv.severity, adv.synopsis from ref, adv where adv.advid == ref.advid and ref.reftype == 'cve' and ref.refid == '$CVE'"
echo "Providing the following updates:"
./ "select distinct rpm.prodshort, rpm.filename, ref.advid from ref, rpm where rpm.advid == ref.advid and ref.reftype == 'cve' and ref.refid == '$CVE' and rpm.prodshort in ('3AS', '4AS') and rpm.arch == 'i386'"
echo "-----------------"