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

Stefan Schwarz Stefan.Schwarz at unibw.de
Sat Aug 7 16:50:43 CEST 2010

I want to test a local nasl-script with openvas-nasl. The script should 
use ssh_login_or_reuse_connection() like:


sock = ssh_login_or_reuse_connection();

I see that nasl-scripts get their configurations like "Secret/SSH/login" 
from a configuration-file "openvasrc", but i cannot see how to specify 
this file for openvas-nasl.

So running the script with trace-option produces:
[14631](vmtest.nasl) NASL> Call get_kb_item(1: "Secret/SSH/login")
[14631](vmtest.nasl) NASL> Return get_kb_item: NULL

So how can i specify configuration.options for a nasl-file with 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6299 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20100807/48944f9e/attachment.p7s>

More information about the Openvas-discuss mailing list