[Openvas-commits] r1378 - trunk/openvas-plugins

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 19 11:14:02 CEST 2008


Author: jan
Date: 2008-09-19 11:14:02 +0200 (Fri, 19 Sep 2008)
New Revision: 1378

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/MANIFEST
   trunk/openvas-plugins/template.nasl
Log:
* template.nasl: Replaced by a entirely new version.

* MANIFEST: Added template.nasl.



Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2008-09-19 07:42:22 UTC (rev 1377)
+++ trunk/openvas-plugins/ChangeLog	2008-09-19 09:14:02 UTC (rev 1378)
@@ -1,3 +1,9 @@
+2008-09-19  Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
+
+	* template.nasl: Replaced by a entirely new version.
+
+	* MANIFEST: Added template.nasl.
+
 2008-09-19  Michael Wiegand <michael.wiegand at intevation.de>
 
 	Removed obsolete plugins/nmap_tcp_connect since it has already been

Modified: trunk/openvas-plugins/MANIFEST
===================================================================
--- trunk/openvas-plugins/MANIFEST	2008-09-19 07:42:22 UTC (rev 1377)
+++ trunk/openvas-plugins/MANIFEST	2008-09-19 09:14:02 UTC (rev 1378)
@@ -67,5 +67,6 @@
 .root-dir
 scripts/*.inc
 scripts/*.nasl
+template.nasl
 TODO
 VERSION

Modified: trunk/openvas-plugins/template.nasl
===================================================================
--- trunk/openvas-plugins/template.nasl	2008-09-19 07:42:22 UTC (rev 1377)
+++ trunk/openvas-plugins/template.nasl	2008-09-19 09:14:02 UTC (rev 1378)
@@ -1,47 +1,66 @@
+# OpenVAS Vulnerability Test
+# $Id$
+# Description: [one-line-description]
+[ # longer multiline description]
 #
-# This script was written by Renaud Deraison <deraison at cvs.nessus.org>
+# Authors:
+# Firstname Lastname <you at example.com>
 #
-# See the Nessus Scripts License for details
+# Copyright:
+# Copyright (c) 2008 Example Inc., http://www.example.com
+[ if it applies in some way, adapt this text to situation:
+# Text descriptions are largerly excerpted from the referenced
+# advisory, and are Copyright (c) the respective author(s)
+]
 #
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2
+# (or any later version), as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
 
 if(description)
 {
  script_id(FIXME);
+ script_oid(FIXME);
  script_cve_id(FIXME);
  script_bugtraq_id(FIXME);
- 
- name["english"] = 
- name["francais"] = 
- script_name(english:name["english"], francais:name["francais"]);
- 
- desc["english"] = 
- desc["francais"] = 
- script_description(english:desc["english"], francais:desc["francais"]);
- 
- summary["english"] = 
- summary["francais"] = 
- script_summary(english:summary["english"], francais:summary["francais"]);
- 
- script_category(ACT_ATTACK);
- 
- 
- script_copyright(english:"This script is Copyright (C) 1999 Renaud Deraison",
-		francais:"Ce script est Copyright (C) 1999 Renaud Deraison");
- family["english"] = 
- family["francais"] = 
- script_family(english:family["english"], francais:family["francais"]);
- script_dependencie("example1.nasl");
- 
+
+ name["english"] = "FIXME: short name (few words)";
+ script_name(english:name["english"]);
+
+ desc["english"] = "FIXME: long text with all info available/sensible";
+ script_description(english:desc["english"]);
+
+ summary["english"] = "FIXME: summary of description";
+ script_summary(english:summary["english"]);
+
+ script_category(ACT_ATTACK); # FIXME: select a suitable category.
+
+ script_copyright(english:"Copyright (C) 2008 FIXME");
+ family["english"] = "FIXME";
+ script_family(english:family["english"]);
+ script_dependencies("FIXME.nasl");
+
  exit(0);
 }
 
 #
-# The script code starts here
+# The actual code starts here
 #
 
-include("http_func.inc");
-include("http_keepalive.inc");
+include("FIXME.inc"); # in case you want to use a NASL library
 
-port = get_http_port(default:80);
-res = http_keepalive_send_recv(port:port, data:http_get(item:"/", port:port));
-display(res);
+# FIXME: the code.
+# Learn from the OpenVAS Compendium:
+# http://www.openvas.org/compendium/developers-guide-for-nasl-scripts.html
+# and from examples (see the existing .nasl scripts of module "openvas-plugins"
+# in directory "scripts/".



More information about the Openvas-commits mailing list