From 719190a5424395fcdfb175b0ec6edf49382ab1e5 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 1 Sep 2016 11:19:27 +1000 Subject: [PATCH] [debescan] Can't add HMTL to extinfo ): Signed-off-by: Olivier Mehani --- plugins/system/debsecan | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/system/debsecan b/plugins/system/debsecan index 047615eb..b8aec1eb 100755 --- a/plugins/system/debsecan +++ b/plugins/system/debsecan @@ -64,7 +64,6 @@ EOF_ fi CVERE="\(\(CVE\|TMP\)[-0-9A-Fa-f]\+\)" -CVEBASEURL="https://security-tracker.debian.org/tracker/" OUT=`mktemp -t debescan.XXXXXX` debsecan 2> /dev/null > ${OUT} @@ -74,13 +73,13 @@ low=`grep -c 'low urgency)' ${OUT}` other=`grep -c -v '\(low\|medium\|high\) urgency' ${OUT}` cat <\1 #p" ${OUT})` +high.extinfo `echo $(sed -n "s#^${CVERE}.*high urgency.*#\1 #p" ${OUT})` medium.value $medium -medium.extinfo `echo $(sed -n "s#^${CVERE}.*medium urgency.*#\1 #p" ${OUT})` +medium.extinfo `echo $(sed -n "s#^${CVERE}.*medium urgency.*#\1 #p" ${OUT})` low.value $low -low.extinfo `echo $(sed -n "s#^${CVERE}.*low urgency.*#\1 #p" ${OUT})` +low.extinfo `echo $(sed -n "s#^${CVERE}.*low urgency.*#\1 #p" ${OUT})` other.value $other -other.extinfo `echo $(grep -v -e '\(low\|medium\|high\) urgency' ${OUT} | sed -n "s#^${CVERE}.*#\1 #p")` -EOF_ +other.extinfo `echo $(grep -v -e '\(low\|medium\|high\) urgency' ${OUT} | sed -n "s#^${CVERE}.*#\1 #p")` +EOF rm -f ${OUT}