sesst has asked for the wisdom of the Perl Monks concerning the following question:

I have installed Parse::Nessus:NBE on a Fedora Linux box. When I enter Perl;
use Parse::Nessus::NBE; function(@nessusdata); function(@nessusdata,$query); my @banners = nbanners(@nessusdata); print @banners;
I receive a [9]+ Stopped     perl message.
I downloaded and installed the Parse::Nessus::NBE module from the CPAN website.

Please help.

jdporter fixed formatting

2006-03-01 Retitled by planetscape, as per Monastery guidelines
Original title: 'Nessus Parse'

Replies are listed 'Best First'.
Re: Parse::Nessus::NBE causes perl process to suspend
by Anonymous Monk on Mar 01, 2006 at 23:08 UTC
    Hi,

    I don't know exactly why this happens on your system, but I can tell that you're doing some things wrong (which may be causing the process' suspension):

    According to the module's documentation, there is no "function()": it's there just to illustrate how to use the OTHER functions of the module - such as nports(), nwebdirs(), etc. So you should get rid of those calls in your code.

    Another thing that you should know (but I'm saying it nonetheless) is that @nessusdata should contain the NBE file from nessus - at least that's what I think. Something like:
    open(NBE, '<', 'path/to/nessus/data.nbe') or die "$!\n"; @nessusdata = <NBE>; close(NBE);
    Last but not least, I couldn't get any of the exported functions to work unless I explicitly exported them. This means that if you want to use nnfs() and nos() (for example) you should replace:
    use Parse::Nessus::NBE;
    with
    use Parse::Nessus::NBE qw( nnfs nos );
    and so on...

    Good luck! And be careful to read the manuals (and also the monastery guidelines ;-)