This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A minimal CVE checker script for apt | |
# License: GPL-3.0 | |
while read package version; do | |
offset=$(apt changelog ${package} 2>/dev/null | grep -n '(${version})' | cut -d ':' -f 1) | |
cves=$(apt changelog ${package} 2>/dev/null | head -${offset} | grep -o 'CVE-[0-9]\+-[0-9]\+') | |
[[ ! -z "$cves" ]] && echo ${package} ${cves} || echo "x: ${package} ${version}" | |
done <<< $(apt list --upgradable 2> /dev/null | sed -e 's|/.*from:||g' -e 's|\]$||g' | tail +2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dualis notification script by p-fruck <dev@p-fruck.de> | |
# License: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) | |
# | |
# This script is intended to be used within a cronjob and will use the | |
# notify-send command once it detects new grades. However you can simply | |
# modify the code and use e.g. email notification instead. Have fun. | |
username=user@dhbw.de | |
password=Password1! | |
baseurl="https://dualis.dhbw.de/scripts/mgrqispi.dll" |