Today is: 11 January, 2012
Check todays hot topics

Frequently Updated MOTD

Force your sysadmins to keep on top of the latest security advisories. Change $outputfile to /etc/motd or change your login profile to cat something else. Do whatever you want with it really, it's essentially an RSS reader in bash.

#!/bin/sh
 
url="http://www.securityfocus.com/rss/vulnerabilities.xml"
 
 
pagetitle="=============================================================================
                         Current Bugtraq Vulnerabilities 
============================================================================="
 
outputfile=/usr/local/src/scripts/outputfile.txt
 
#Headarg is the number of vulnerabilities times three.
headarg="-15"
 
echo "$pagetitle" > $outputfile
 
curl --silent "$url" | \
        grep -A 2 "Vuln:" | \
        sed -e 's/\(<title>\|<link>\)//' | \
        sed -e 's/\(<\/title>\|<\/link>\)//' | \
        sed '/^$/d' | \
        head $headarg >> $outputfile
 
exit 0