That's a very new nice feature for openvas-nasl, it will definitively save
time when debugging pluging.
is it available in openvas9 official release? or from trunk ?


GSM: 06.20.60.77.24

On Wed, May 25, 2016 at 6:50 PM, Michael Meyer <[email protected]>
wrote:

> *** Corti Matteo (ID BD) wrote:
> > I would like to run a single test on the command line, for example (
> http://plugins.openvas.org/nasl.php?oid=803477)
> >
> > openvas-nasl -X -t IP -i /var/lib/openvas/plugins
> /var/lib/openvas/plugins/2013/gb_miniweb_file_upload_n_dir_trav_vuln.nasl
> -T -
> >
> > Seems to work but I did not find out how to specify parameters (for
> example in this case the port), which is defined as
> >
> > port = get_http_port(default:8000);
> > if(!port){
> >   port = 8000;
> > }
>
> if you have a recent version of openvas-nasl
>
> openvas-nasl -X --kb "Services/www=80" ...
>
> With older versions of openvas-nasl you have to change the port directly
> in the
> NVT...
>
> Micha
>
> --
> Michael Meyer                  OpenPGP Key: 0xAF069E9152A6EFA6
> http://www.greenbone.net/
> Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG
> Osnabrück, HR B 202460
> Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
> _______________________________________________
> Openvas-discuss mailing list
> [email protected]
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to