On Fri, Feb 22, 2002 at 04:01:26PM +1100, Marc Bown wrote:
> Hi All,
>
> Is there a simple method to extract the data from an nasl script
> efficiently?
>
> At the moment I have been writing my own regular expressions to find the
> warnings and script ids contained within nasl scripts - but this is proving
> to be difficult and time consuming. Is there any way that I can use the
> nasl libraries to extract this information quickly and easily?
>
> Basically we have our own knowledge base associated with existing nasl
> scripts (which we are planning to share with the community once development
> is complete). The knowledge is based on the knowledge already contained
> within the scripts and I want to prepopulate some our systems with this
> existing data while we finish creating our own.
>
> Hope someone can help me :)
You could hack up the nasl interpretor so that it dumps the variables
you want on exit - or even hack nessusd itself. I can send you a copy of
a "nessusd2sql" mod I did, if you want to see how I did it.
-- Renaud