*** Wiza, David wrote:

> Hmm...I looked at the template and added missing tags, but it still
> doesn't seem to be working.

Waht *exactly* means "doesn't seem to be working"?

> Here's the current script:
> 
> # 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);

If you scan a target with this NVT, the target must have port 80 open,
else the NVT wil not executed.

>     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.

Works for me. Scanner is loading this NVT and --rebuild put it into
the DB. Within a scan config i could see and activate this NVT under
the Family General.

Enable "Log whole attack" and watch openvassd.messages during a scan.
You should see if the NVT was executed or if not, why not.

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

Reply via email to