Yes, I have a perl script that logs the changed and new plugins, and the update-nessus-plugins does copy updated scripts to this directory.
-----Original Message----- From: Todd Adamson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 10:33 AM To: 'Matt Jonkman'; [EMAIL PROTECTED] Subject: RE: automatic update If I understand the script correctly, this will copy all newly "created" scripts into the script directory. But, does this copy those scripts that are preexisting and modified? Todd Adamson > -----Original Message----- > From: Matt Jonkman > Subject: Re: automatic update > > I slimmed down the distributed nessus-update-plugins to suit > my local needs, > and give a diff output. Works well enough although I'm sure > it could be > refined. > > Run from a cron job it'll give you a list of the new plugins. > > ------------------ > > #!/bin/sh > cwd=`pwd` > mkdir "/tmp/nessus-update-plugins-$$" > cd "/tmp/nessus-update-plugins-$$" > /usr/local/bin/lynx -source > http://www.nessus.org/nasl/all-1.2.tar.gz | tar > xvzf - > /root/.plugins.new > diff /root/.plugins.new /root/.plugins > cp /root/.plugins.new /root/.plugins > cp *.nasl /usr/local/lib/nessus/plugins/ > cp *.inc /usr/local/lib/nessus/plugins/ > cd "$cwd" > rm -rf "/tmp/nessus-update-plugins-$$" > chown 0 /usr/local/lib/nessus/plugins/*.nasl > chgrp 0 /usr/local/lib/nessus/plugins/*.nasl > test -f /usr/local/var/nessus/nessusd.pid && ( > pid=`cat /usr/local/var/nessus/nessusd.pid` > kill -1 $pid 2>/dev/null > ) > <-- SNIP --> - [EMAIL PROTECTED]: general discussions about Nessus. * To unsubscribe, send a mail to [EMAIL PROTECTED] with "unsubscribe nessus" in the body. IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you have received this message in error, you are hereby notified that we do not consent to any reading, dissemination, distribution or copying of this message. If you have received this communication in error, please notify the sender immediately and destroy the transmitted information. - [EMAIL PROTECTED]: general discussions about Nessus. * To unsubscribe, send a mail to [EMAIL PROTECTED] with "unsubscribe nessus" in the body.
