Mailing List Archive

How to send an argument to a NASL plugin
Hi,

How do I send a value to the NASL plugin I want to execute as an argument either from the command-line or the Nessus client?
for example if I want to specify the time my DOS attack should run from the front end.

thanks,
aks
Re: How to send an argument to a NASL plugin [ In reply to ]
On Fri, Mar 18, 2005 at 04:53:24PM +0530, Akshat Choudhary
wrote:

> How do I send a value to the NASL plugin I want to execute
> as an argument either from the command-line

You can't.

> or the Nessus
> client?

You could declare a preference using script_add_preference()
in the script's description block and then, in the plugin
itself, access it using script_get_preference().

George

--
theall@tenablesecurity.com