*** 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

Reply via email to