I must be doing something wrong... I made the modification below as you describe to the update-nessus-plugins script, and executed it as "root". I have also verified that all the required perl modules are installed.
perl -T /opt/nessus/auto/update-nessus-plugins -bps > /home/cashby/plugin-report.txt When finished i didn't receive any errors and the output was written to a txt file as configured. Below is what was recorded: No errors found parsing new / changed plugins. Backup of '/opt/nessus/lib/nessus/plugins' available as '/tmp/plugins-pre-20081210-120950.tar.gz'. ******* This has happened before, as the plugins have been successfully updated. I will run this script later tonight, tomorrow morning hoping for some new plugins to be available. Hopefully all the issues are worked out and i can get a report generated... thanks for all your help ashby On Wed, Dec 10, 2008 at 11:14 AM, Mercer, Jeff C - Raleigh, NC <[EMAIL PROTECTED]> wrote: > I got them to work the other week, though I did get that same W32.Sasser > error that you did when I tried to update today. I re-ran the update and > it worked correctly. > > I'm assuming you've installed all the necessary perl modules. You might > want to do a "cpan upgrade" just to make sure you have the latest > version of the modules. I also found it's better to just run the whole > thing as root rather than try and use sudo. > > I had to modify a couple of lines as well. Here's my diff between the > original and modified forms of update-nessus-plugins: > > > < = original >> = updated > > 161c33 > < $ENV{PATH} = > '/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/opt/nessus/bin:/opt/nessu > s/sbin'; # nb: also passed to nessus-update-plugins > --- >> $ENV{PATH} = > '/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/opt/nessus/bin'; # nb: > also passed to nessus-update-plugins > 290c162 > < my $cmd = 'nessus-update-plugins'; > --- >> my $cmd = '/opt/nessus/sbin/nessus-update-plugins'; > 352c224,225 > < my $cmd = 'describe-nessus-plugin ' . > --- >> my $cmd = 'describe-nessus-plugin ' . >> '-f ' . join(',', @info_funcs) . ' ' . > 382c255 > < open(NEW, $plugin) or croak "Can't read '$plugin' - $!\n"; > --- >> open(NEW, "$plugins_dir/$plugin") or croak "Can't read > '$plugin' - $!\n"; > > > > I'm running RHEL as well, so I think this should work for you as well. > > -------- > Jeff Mercer - CISO - Security Vulnerability Assessments > > >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of christopher ashby >>Sent: Saturday, December 06, 2008 11:10 AM >>To: nessus@list.nessus.org >>Subject: Update Nessus Plugins Script >> >>List- >> >>Has anyone successfully implemented these scripts with Nessus? I >>currently have Nessus 3.2.1 on a RH Server and use the command line to >>execute my scans. Here is what happens when I attempt to use these >>scripts: >> >>The 1st script (update-nessus-plugins.pl) executes properly and >>updates the plugins, creates the MD5, and archives everything >>according to plan. When this scripts executes the >>describe-nessus-plugin.pl script, it gives me an error saying that the >>""plugin isn't available?? >> >>I have execute this in debug mode, and receive the same generic error. >> If i execute the perl script (describe-nessus-plugin.pl) on it's own, >>it properly gives me the output? I have modified the >>update-nessus-plugin.pl script adding/updating the paths (line161 & >>183) and then modifying lines 352-355 which call the >>describe-nessus-plugins.pl script. This modification was made because >>if i execute the script (describe-nessus-plugins.pl) without any >>switches it's outcome is exactly what i need. >> >>Here is the command i execute in an attempt to get the outcome desired: >> >>sudo perl -T /opt/nessus/auto/update-nessus-plugins.pl -b -p -s >> >>/home/cashby/plugins-report.txt >> >>i have also attempted this with the same outcome: >> >>sudo perl -T /opt/nessus/auto/update-nessus-plugins.pl -bps >> >>/home/cashby/plugins-report.txt >> >>I have attached the scripts for anyone to view, if anyone has any >>suggestions that would be appreciated! >> >>thanks- >>Christopher Ashby >> > _______________________________________________ Nessus mailing list Nessus@list.nessus.org http://mail.nessus.org/mailman/listinfo/nessus