*** Wiza, David wrote:
> I've written a plugin, but OpenVAS doesn't seem to load it. It runs
> from the openvas-nasl command line utility just fine, and if I
> purposefully add a piece of bad code to it, then when
> openvas-scanner starts, it throws an error, but if there's nothing
> wrong with it at all and openvas-scanner starts fine, my plugin
> isn't in the list of NVTs. Is there something vital that I'm
> missing? Here's the text of the plugin:
>
> if (description) {
> script_id(1000000);
> script_version("0.1");
> script_name("Test Plugin");
> script_summary("My first plugin");
> script_category(ACT_GATHER_INFO);
> script_family("general");
> exit(0);
> }
>
> display('Testing.\n');
> security_hole(port:0, data:'Testing');
> exit(0);
You are missing some mandatory tags
(cvss_base,cvss_base_vector,last_modification,...) within
the description part. I guess that the scanner is able to load this NVT but the
manager will
not able to add it to the database.
Please see
https://svn.wald.intevation.org/svn/openvas-nvts/template.nasl
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-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins