Mailing List Archive

nasl interpreter
Hi, i want to make a nasl interpreter,using libnasl, is this possible and
if it is,how? in nasl.h there is a execute_nasl_script function, it takes
as parameters an arglist, what values have to be set in the arglist
struct, i know that an arglist is like a multipurpose linked list
:P,something like a hash.
Re: nasl interpreter [ In reply to ]
Take a look at the source code for the command line nasl tool.

Cheers

Rich.
Re: nasl interpreter [ In reply to ]
Well that help a lot, a question tho, how to get the result of a plugin. I
take a look to nasl_nessusd_glue.c and the security_hole function "call"
proto_post_hole in nessusd :S. So i have to use nessusd to get the result
of a plugin or i cant get it myself without using nessusd? Another
question, how to make the KB feature works with this type of standalone
apps?

> Take a look at the source code for the command line nasl tool.
>
> Cheers
>
> Rich.
>
>
> _______________________________________________
> Nessus-devel mailing list
> Nessus-devel@list.nessus.org
> http://mail.nessus.org/mailman/listinfo/nessus-devel
>
Re: nasl interpreter [ In reply to ]
On Wed, Jun 02, 2004 at 04:08:43AM +1200, Herman Polloni wrote:

> Another question, how to make the KB feature works with this type of
> standalone apps?

Pavel Kankovsky wrote the patch:

http://mail.nessus.org/pipermail/nessus-devel/2004-March/000106.html
http://mail.nessus.org/pipermail/nessus-devel/2004-March/000107.html
http://mail.nessus.org/pipermail/nessus/2004-May/001557.html

Martin Maèok
IT Security Consultant
Re: nasl interpreter [ In reply to ]
On Wed, Jun 02, 2004 at 04:08:43AM +1200, Herman Polloni wrote:
> Well that help a lot, a question tho, how to get the result of a plugin. I
> take a look to nasl_nessusd_glue.c and the security_hole function "call"
> proto_post_hole in nessusd :S. So i have to use nessusd to get the result
> of a plugin or i cant get it myself without using nessusd? Another
> question, how to make the KB feature works with this type of standalone
> apps?

The plugin "registers" itself to nessusd, then the function in the
nessus library actually finds back the description of the plugin. This
is in the case where static text is used.

And the KB feature does not really work without nessusd behind.


-- Renaud