On 2014-09-15 19:42, Wiza, David wrote:
Hmm...I looked at the template and added missing tags, but it still
doesn't seem to be working. Here's the current script:
The script loads fine for me, and appears in the web ui.
Was the scanner able to parse/load it correctly ? ie. Do you have a
cache file for the plugin such as /usr/var/cache/openvas/foo.nasl (or
wherever is your plugins cache folder)
If yes, did the manager rebuild go correctly ?
# OpenVAS Vulnerability Test
# $Id: djs_openvas_test.nasl 1 2014-09-15 10:18:58 sep $
# Description: My first plugin
if (description)
{
script_id(1000001);
script_version("$Revision: 1 $");
script_tag(name:"last_modification", value:"$Date: 2014-09-15
10:18:58 +0200 (Mon, 16 Sep 2014) $");
script_tag(name:"creation_date", value:"$Date: 2014-09-15
10:18:58 +0200 (Mon, 16 Sep 2014) $");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"cvss_base_vector",
value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_cve_id("None");
script_bugtraq_id(0);
script_name("DJs OpenVas Test");
script_summary("A quick description of the check.");
script_category(ACT_GATHER_INFO);
script_copyright("This script is Copyright (C) 2014 Me");
script_family("General");
script_description("My first plugin");
script_tag(name:"summary", value:"Summary is a description of the
vulnerability.");
script_xref(name:"URL", value:"http://www.example.com");
script_require_ports(80);
exit(0);
}
display('Testing');
security_hole(port:0, data:'Testing');
exit(0);
I tried changing the CVE ID and Bugtraq IDs to real values, but that
didn't change anything.
-----Original Message-----
From: Openvas-plugins
[mailto:[email protected]] On Behalf Of
Michael Meyer
Sent: Saturday, September 13, 2014 1:18 AM
To: [email protected]
Subject: Re: [Openvas-plugins] OpenVAS isn't loading my plugin
*** 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
_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins