[Openvas-discuss] Getting configuration when running nasl-script with openvas-nasl

Michael Meyer michael.meyer at greenbone.net
Sat Aug 7 19:10:23 CEST 2010


*** Stefan Schwarz <Stefan.Schwarz at unibw.de> wrote:
 
> So how can i specify configuration.options for a nasl-file with 
> openvas-nasl?

Not possible. "openvas-nasl" can't execute dependencies and can't read
from KB. Test with Client or use the following:

,---|
| include("ssh_func.inc");
|
| account = "user";
| password = "password";
| 
| soc = open_sock_tcp(22);
| ssh_login(socket:soc, login:account, password:password);
| buf= ssh_cmd(socket:soc, cmd:"ls");
| display(buf);
| close(soc) ;
`---|

HTH

Micha

-- 
Michael Meyer                                         OpenPGP Key: 52A6EFA6
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



More information about the Openvas-discuss mailing list