echo "update cacti.settings set value='/etc/cacti.log' where name='path_cactilog' ;" | mysql -ucacti -p"$database_pw" cacti
wget --output-document="$tmpFile1" $loadSaveCookie 'http://localhost/cacti/clog.php?rfilter=&reverse=1&refresh=60&message_type=-1&tail_lines=500&filename=passwd'
echo -n "Checking $tmpFile1 for /etc/passwd content (CVE-2017-16661) ... "
grep -q "root:x:0:0" "$tmpFile1" && echo "failed" && false
echo "done"
