Net::Nessus does not currently support notes. It shouldn't be all that
hard to add it, I haven't looked at it. One option may be to use the
ntp_client_accepts_notes preference. Another option I once used to
solve this problem is to treat notes as info's. It's kind of a kludge
but it worked for what I needed it to do. For example I believe
something like this would work in Net::Nessus::Message about line 140:
my $class = (ref($self) or $self);
$class =~ s/^\b(Client|Server)\b/Message/;
#####START ADDED
$type =~ s/NOTE/INFO/;
#####DONE WITH ADDED
$class .= "::$type";
$class->new($sock, $sender, $type, [EMAIL PROTECTED]);
Doing this should let all the NOTEs come through as INFOs, and may be
good enough to get you through until Net::Nessus is updated (which is
hasn't been for a couple of years).
Hope this helps some,
Laters,
Dave King
Ricardo M. Stella wrote:
> I've recently upgraded our nessus server from 2.2.5 to 3.0.2. But we've
> got now some incompatibilities when using Net::Nessus (actually we use a
> package Net::Nessus::ScanLite which depends on Net::Nessus).
>
> This is the error we are getting (apache mod-perl).
>
> Any ideas where to start and/or who to contact ?
>
> TIA...
>
> [Wed Apr 26 12:50:27 2006] [error] Can't locate object method "new" via
> package "Net::Nessus::Message::NOTE" (perhaps you forgot to load
> "Net::Nessus::Message::NOTE"?) at
> /usr/local/lib/perl5/site_perl/5.8.5/Net/Nessus/Message.pm line 139,
> <DATA> line 283.\n
>
>
>
>
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus