I kind of have an idea for how to make a popup for when a vulnerability is presented. For the root crontab I have
I can use pkg audit as a non-root user to find the alert, but this doesn't alert me automatically when it becomes present. Next, I found the program x11/xmessage which comes with xorg, that can pop up a window with a message.
An example of a shown (old) vulnerability is
as opposed to
It will take a non-root user crontab, to alert me, and a conditional statement to call xmessage when an alert is made. This would be easy for experienced shell users, and I can find the answer after some work, but I also wanted to present this topic on a script to alert users on package vulnerabilities.
------------------
user crontab:
then a conditional call to xmessage. Then there would need to be another conditional statement, so the message doesn't repeat if a previous xmessage warning is still running, when there is a vulnerability.
Code:
@reboot pkg audit -F
@hourly pkg audit -F
I can use pkg audit as a non-root user to find the alert, but this doesn't alert me automatically when it becomes present. Next, I found the program x11/xmessage which comes with xorg, that can pop up a window with a message.
An example of a shown (old) vulnerability is
Code:
vuxml file up-to-date
example-3.1.2_6,1 is vulnerable:
example -- RCE vulnerability
CVE: CVE-2016-1541
WWW: https://vuxml.FreeBSD.org/freebsd/2b4c8e1f-1609-11e6-b55e-b499baebfeaf.html
1 problem(s) in the installed packages found.
as opposed to
Code:
0 problem(s) in the installed packages found.
It will take a non-root user crontab, to alert me, and a conditional statement to call xmessage when an alert is made. This would be easy for experienced shell users, and I can find the answer after some work, but I also wanted to present this topic on a script to alert users on package vulnerabilities.
------------------
user crontab:
Code:
@reboot pkg audit | grep "is vulnerable"
@hourly pkg audit | grep "is vulnerable"