***UPDATE*** Cron Job for OpenVas Feeds

//// Creating cron job
sudo su
cd usr/local/sbin
touch openvas-update
nano openvas-update
..............

!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

echo "Updating OpenVas Feeds"
greenbone-nvt-sync
greenbone-scapdata-sync
greenbone-certdata-sync

echo "Updating Ports"
wget -q http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml -O /tmp/ports.xml
openvas-portnames-update /tmp/ports.xml

...............

//// Give current user execution rights
chmod u+x openvas-update

//// Create a crone job with current user
crontab -e

//// Run once a week
0 0 0 /usr/local/sbin/openvas-update

Antworte