Hello,

*** Shang Wang wrote:

> 1. Do I need to add all the dependencies for the new plugin into the
> template to test them? Or OpenVAS is smart enough to go back and fetch
> those automatically? (I assume the answer is yes, because if I don't add
> those dependencies, the report might give out "ssh port is not open, might
> not able to perform local checks" in the report.)

Depends...for testing ssh based LSC-NVTs with openvas-nasl have a look at the
function "ssh_login" from ssh_func.inc.

> 2. Is there any other way that we can only test for certain plugins? I
> could use "openvas-nasl" command to test the syntactic correctness, but I
> need a quick way to determine whether they are working or not.

You can test a lot of NVTs with "openvas-nasl -X -t <target> /path/to
nvt. If you need something from KB, that doesn't work. Because of
that, i'll often use hardcoded vars for testing with openvas-nasl
and replace them later with some get_kb_item() and do the last tests
with the scanner.

Maybe i could give you more hints if you provide more details about
the NVTs you would like to test. Just write me a pm with some code.

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
_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to