[Openvas-commits] r6504 - in trunk/openvas-plugins: . extra/lsc_generator extra/lsc_generator/parser extra/lsc_generator/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jan 25 13:41:09 CET 2010


Author: chandra
Date: 2010-01-25 13:41:05 +0100 (Mon, 25 Jan 2010)
New Revision: 6504

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/extra/lsc_generator/LSCGenerator.py
   trunk/openvas-plugins/extra/lsc_generator/parser/hp_ux.py
   trunk/openvas-plugins/extra/lsc_generator/parser/mandriva.py
   trunk/openvas-plugins/extra/lsc_generator/parser/redhat.py
   trunk/openvas-plugins/extra/lsc_generator/parser/suse.py
   trunk/openvas-plugins/extra/lsc_generator/parser/ubuntu.py
   trunk/openvas-plugins/extra/lsc_generator/templates/CentOS.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Debian.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Fedora.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Gentoo.template
   trunk/openvas-plugins/extra/lsc_generator/templates/HPUX.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Mandriva.template
   trunk/openvas-plugins/extra/lsc_generator/templates/RedHat.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Solaris.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Suse.template
   trunk/openvas-plugins/extra/lsc_generator/templates/Ubuntu.template
Log:
Addressed file encoding issue

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/ChangeLog	2010-01-25 12:41:05 UTC (rev 6504)
@@ -1,5 +1,26 @@
 2010-01-25  Chandrashekhar B <bchandra at secpod.com>
 
+	* extra/lsc_generator/LSCGenerator.py,
+	extra/lsc_generator/parser/suse.py,
+	extra/lsc_generator/parser/mandriva.py,
+	extra/lsc_generator/parser/ubuntu.py,
+	extra/lsc_generator/parser/hp_ux.py,
+	extra/lsc_generator/parser/redhat.py,
+	extra/lsc_generator/templates/RedHat.template,
+	extra/lsc_generator/templates/CentOS.template,
+	extra/lsc_generator/templates/Gentoo.template,
+	extra/lsc_generator/templates/Solaris.template,
+	extra/lsc_generator/templates/Suse.template,
+	extra/lsc_generator/templates/Fedora.template,
+	extra/lsc_generator/templates/Mandriva.template,
+	extra/lsc_generator/templates/Debian.template,
+	extra/lsc_generator/templates/Ubuntu.template,
+	extra/lsc_generator/templates/HPUX.template:
+	Address the file encoding issue, enhancements,
+	inclusion of new OS releases.
+
+2010-01-25  Chandrashekhar B <bchandra at secpod.com>
+
 	* scripts/gb_suse_2010_006.nasl,
 	scripts/gb_RHSA-2010_0062-02_bind.nasl,
 	scripts/gb_ubuntu_USN_890_3.nasl,

Modified: trunk/openvas-plugins/extra/lsc_generator/LSCGenerator.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/LSCGenerator.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/LSCGenerator.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -289,9 +289,11 @@
                     ## Get Parser Object and Config Value
                     (parser_obj, config_sect) = self._object_map[parser_ref]
 
+                    print "#################################################################"
                     print "Generating the code for %s ... "%(config_sect)
                     self.generate(parser_obj, config_sect, paths, debug)
                     print "Successfully generated the Local Security Checks"
+                    print "#################################################################"
                 else:
                     print "The parser for %s doesn't exist" %(parser_ref)
 
@@ -405,8 +407,21 @@
                 if not final_template:
                     continue
 
+                ## Convert to ascii/iso-8859-1 encoding.
+                try:
+                    final_template = final_template.encode('ascii')
+                except UnicodeDecodeError:
+                    try:
+                        final_template = final_template.decode('utf-8')
+                        final_template = final_template.encode('iso-8859-1')
+                    except UnicodeDecodeError:
+                        print "Warning: Found encoding other then ascii/utf-8 .."
+                        final_template = final_template.decode('ascii','ignore')
+                        final_template = final_template.encode('ascii','ignore')
+
                 ## Script file name
                 file_name = 'gb_' + parse.FileName + '.nasl'
+                file_name = file_name.replace(' ','_')
 
                 if(debug):
                     print "Generated New ID  %s , Script Name %s " %(new_id, \

Modified: trunk/openvas-plugins/extra/lsc_generator/parser/hp_ux.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/parser/hp_ux.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/parser/hp_ux.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -248,10 +248,10 @@
                             except Exception, msg:
                                 print 'ERROR: Error retriving the url %s' % msg
                 else:
-                    print "ERROR: Din't find mentioned (%s) year in HP-UX "+ \
+                    print "ERROR: Din't find mentioned (%s) year in HP-UX " \
                                                  "Advisories..." %(year)
-                    print "Exiting ..."
-                    sys.exit(0)
+#                    print "Exiting ..."
+#                    sys.exit(0)
             elif debug:
                 print "Getting Redirect Error : ", response
                 sys.exit(response)
@@ -622,7 +622,7 @@
 
        tmp = file_name.split('_')
 
-       reference = main_url + '?docId=emr_na-' + tmp[-2] + '-' + \
+       reference = main_url + '?docId=emr_' + tmp[-2] + '-' + \
                                             tmp[-1].strip('.html')
 
        return reference

Modified: trunk/openvas-plugins/extra/lsc_generator/parser/mandriva.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/parser/mandriva.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/parser/mandriva.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -39,12 +39,17 @@
 #    'Corporate 3.0' : 'Corp3.0',
 #    'Corporate 4.0' : 'Corp4.0',
 #    'Multi Network Firewall 2.0' : 'MuNetFW2.0',
+
+    'Mandriva Linux 2010.0' : 'MNDK_2010.0', 
     'Mandriva Linux 2009.0' : 'MNDK_2009.0',
+    'Mandriva Linux 2009.1' : 'MNDK_2009.1', 
+    'Mandriva Linux 2008.0' : 'MNDK_2008.0',
     'Mandriva Linux 2008.1' : 'MNDK_2008.1',
-    'Mandriva Linux 2008.0' : 'MNDK_2008.0',
+    'Mandriva Linux 2007.0' : 'MNDK_2007.0',
     'Mandriva Linux 2007.1' : 'MNDK_2007.1',
-    'Mandriva Linux 2007.0' : 'MNDK_2007.0',
     'Mandriva Linux 2006.0' : 'MNDK_2006.0',
+  
+    'Mandriva Enterprise Server 5' : 'MNDK_mes5',
 
 }
 

Modified: trunk/openvas-plugins/extra/lsc_generator/parser/redhat.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/parser/redhat.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/parser/redhat.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -405,10 +405,10 @@
                     print "\nERROR: Product not found in the data : ", prod
                 continue
 
-            data = data[string.find(data, prod) + len(prod) + 2:]
-            data = data.strip()
+            tmp_data = data[string.find(data, prod) + len(prod) + 2:]
+            tmp_data = tmp_data.strip()
 
-            for line in data.split('\n'):
+            for line in tmp_data.split('\n'):
                 line = line.strip().strip(':')
                 if not line:
                     continue

Modified: trunk/openvas-plugins/extra/lsc_generator/parser/suse.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/parser/suse.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/parser/suse.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -41,27 +41,41 @@
     'openSUSE 10.3' : 'openSUSE10.3',
     'openSUSE 11.0' : 'openSUSE11.0',
     'openSUSE 11.1' : 'openSUSE11.1',
+    'openSUSE 11.2' : 'openSUSE11.2',
 
-    'SUSE SLES 9' : 'SLES9',
-    'SUSE SLED 10': 'SLED10',
-    'SUSE SLES 10' : 'SLES10',
-    'SUSE LINUX 10.1' : 'SL10.1',
-    'Novell Linux POS 9' : 'NLPOS9',
-    'SLE SDK 10 SP1' : 'SLESDK10SP1',
-    'SLE SDK 10 SP2' : 'SLESDK10SP2',
-    'SUSE SLE 10 DEBUGINFO':'SLEDe10',
-    'Novell Linux Desktop 9' : 'NLDk9',
-    'Novell Linux Desktop 9 SDK' : 'NLDk9SDK',
+    'SUSE SLES 9' : 'SLES9.0',   # SUSE Linux Enterprise Server 9
+    'SUSE SLES 10' : 'SLES10.0', # SUSE Linux Enterprise Server 10
+    'SLES 11':'SLES11.0',        # SUSE Linux Enterprise Server 11
 
-    'Open Enterprise Server' : 'OES',
-    'SuSE Linux Enterprise Server 8' : 'SLESSr8',
-    'SUSE Linux Enterprise Server 10 SP1' : 'LES10SP1',
-    'SUSE Linux Enterprise Server 10 SP2' : 'LES10SP2',
-    'SUSE Linux Enterprise Desktop 10 SP1' : 'SLESDk10SP1',
-    'SUSE Linux Enterprise Desktop 10 SP2' : 'SLESDk10SP2',
-    'SUSE Linux Enterprise 10 SP2 DEBUGINFO' : 'SLEDe10SP2',
-    'SUSE Linux Enterprise Server RT Solution 10' : 'SLESRTSol10',
 
+#    'SLE 11':'SLE11.0',         # New SUSE Linux Enterprise
+
+#    'SUSE SLED 10': 'SLED10',
+#    'SUSE LINUX 10.1' : 'SL10.1',
+#    'Novell Linux POS 9' : 'NLPOS9',
+#    'SLE SDK 10 SP1' : 'SLESDK10SP1',
+#    'SLE SDK 10 SP2' : 'SLESDK10SP2',
+#    'SLE SDK 10 SP3' : 'SLESDK10SP3', # New
+
+#    'SUSE SLE 10 DEBUGINFO':'SLEDe10',
+
+#    'Novell Linux Desktop 9' : 'NLDk9',
+#    'Novell Linux Desktop 9 SDK' : 'NLDk9SDK',
+
+#    'Open Enterprise Server' : 'OES',
+#    'SuSE Linux Enterprise Server 8' : 'SLESSr8',
+#    'SUSE Linux Enterprise Server 10 SP1' : 'LES10SP1',
+#    'SUSE Linux Enterprise Server 10 SP2' : 'LES10SP2',
+#    'SUSE Linux Enterprise Server 10 SP3' : 'LES10SP3', # New
+#    'SUSE Linux Enterprise Desktop 10 SP1' : 'SLESDk10SP1',
+#    'SUSE Linux Enterprise Desktop 10 SP2' : 'SLESDk10SP2',
+#    'SUSE Linux Enterprise Desktop 10 SP3' : 'SLESDk10SP3', # New
+#    'SUSE Linux Enterprise Server RT Solution 10' : 'SLESRTSol10',
+
+#    'SUSE Linux Enterprise 10 SP2 DEBUGINFO' : 'SLEDe10SP2',
+#    'SUSE Linux Enterprise 10 SP3 DEBUGINFO' : 'SLEDe10SP3', # New
+
+
 }
 
 ## Strips these from strip list

Modified: trunk/openvas-plugins/extra/lsc_generator/parser/ubuntu.py
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/parser/ubuntu.py	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/parser/ubuntu.py	2010-01-25 12:41:05 UTC (rev 6504)
@@ -46,8 +46,8 @@
     'Ubuntu 8.04' : 'UBUNTU8.04 LTS',
     'Ubuntu 8.04 LTS' : 'UBUNTU8.04 LTS',
     'Ubuntu 8.10' : 'UBUNTU8.10',
-    '' : '',
-
+    'Ubuntu 9.04' : 'UBUNTU9.04',
+    'Ubuntu 9.10' : 'UBUNTU9.10', 
 }
 
 ## Strips these from strip list
@@ -254,6 +254,18 @@
         else:
             pkg = ''
 
+        ## Some time name is coming like postgresql-8.1, postgresql-8.3,
+        ## postgresql-8.4 vulnerabilities. Below code is to avoid such a 
+        ## situaction. EX : USN-876-1 or 2010-January/001018.html
+
+        if len(pkg) > 40 and ', ' in pkg:
+            pkg_regex =  re.compile("<H1>\[USN-\d\d\d?\d?\d?-\d\d?\](.*)</H1>",\
+                                                          re.IGNORECASE)
+        tmp_pkg = self._findAll(pkg_regex)
+
+        if tmp_pkg:
+            pkg = tmp_pkg[0].strip()
+
         if debug:
             print "Affected Packages/RPMS : ", pkg
 

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/CentOS.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/CentOS.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/CentOS.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("CentOS Update for __SCRIPT_NAME__");
@@ -48,7 +48,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("CentOS Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Debian.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Debian.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Debian.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Debian Update for __SCRIPT_NAME__");
@@ -48,7 +48,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Debian Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Fedora.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Fedora.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Fedora.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Fedora Update for __SCRIPT_NAME__");
@@ -48,7 +48,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Fedora Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Gentoo.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Gentoo.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Gentoo.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Gentoo Update for __SCRIPT_NAME__");
@@ -51,7 +51,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Gentoo Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/HPUX.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/HPUX.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/HPUX.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("HP-UX Update for __SCRIPT_NAME__");
@@ -52,7 +52,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("HP-UX Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Mandriva.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Mandriva.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Mandriva.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Mandriva Update for __SCRIPT_NAME__");
@@ -49,7 +49,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Mandrake Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/RedHat.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/RedHat.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/RedHat.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("RedHat Update for __SCRIPT_NAME__");
@@ -48,7 +48,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Red Hat Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Solaris.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Solaris.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Solaris.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Solaris Update for __SCRIPT_NAME__");
@@ -48,7 +48,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Solaris Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/solosversion");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Suse.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Suse.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Suse.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("SuSE Update for __SCRIPT_NAME__");
@@ -51,7 +51,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("SuSE Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");

Modified: trunk/openvas-plugins/extra/lsc_generator/templates/Ubuntu.template
===================================================================
--- trunk/openvas-plugins/extra/lsc_generator/templates/Ubuntu.template	2010-01-25 12:25:54 UTC (rev 6503)
+++ trunk/openvas-plugins/extra/lsc_generator/templates/Ubuntu.template	2010-01-25 12:41:05 UTC (rev 6504)
@@ -7,7 +7,7 @@
 # System Generated Check
 #
 # Copyright:
-# Copyright (c) 2009 Intevation GmbH, http://www.intevation.net
+# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2
@@ -26,7 +26,7 @@
 if(description)
 {
   script_id(__SCRIPT_ID__);
-  script_version("$Revision: 1.0 $");
+  script_version("$Revision$: 1.0");
   script_xref(name: "__XREF_NAME__", value: "__XREF_VALUE__");
   script_cve_id("__CVEIDS__");
   script_name("Ubuntu Update for __SCRIPT_NAME__");
@@ -49,7 +49,7 @@
   script_description(desc);
   script_summary("Check for the Version of __SCRIPT_PKG__");
   script_category(ACT_GATHER_INFO);
-  script_copyright("Copyright (C) 2009 Intevation GmbH");
+  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
   script_family("Ubuntu Local Security Checks");
   script_dependencies("gather-package-list.nasl");
   script_require_keys("ssh/login/release");



More information about the Openvas-commits mailing list