Reading Time: < 1 minute

Quick notes to remember Custom Tenable Custom plugins

https://avleonov.com/2018/11/05/adding-custom-nasl-plugins-to-tenable-nessus/

vi custom_feed_info.inc
content =
PLUGIN_SET = “202109291526”;
PLUGIN_FEED = “Custom”;

vi toto.nasl

script_id(900005);

pset=`date +"%Y%m%d%H%M"`; echo -e "PLUGIN_SET = \"$pset\";\nPLUGIN_FEED = \"Custom\";" > custom_feed_info.inc;
tar -cvzf custom_nasl_archive.tar.gz custom_feed_info.inc toto.nasl
systemctl stop nessusd
/opt/nessus/sbin/nessuscli fix --set nasl_no_signature_check=yes
/opt/nessus/sbin/nessuscli update /root/nessus/custom_nasl_archive.tar.gz
/opt/nessus/sbin/nessusd -t
systemctl start nessusd

Syntax reminder

AND = &&

OR = ||

0