AKIF Orientierungshilfe Windows 10: Fehler

2017-02-10T00:00:00
ID OPENVAS:1361412562310108081
Type openvas
Reporter Copyright (c) 2017 Greenbone Networks GmbH
Modified 2017-06-13T00:00:00

Description

Listet alle Fehler der

                                        
                                            ##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_policy_orientierungshilfe_win10_error.nasl 6327 2017-06-13 13:38:15Z cfischer $
#
# AKIF Orientierungshilfe Windows 10: Fehler
#
# Authors:
# Christian Fischer <christian.fischer@greenbone.net>
#
# Copyright:
# Copyright (c) 2017 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# 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_oid("1.3.6.1.4.1.25623.1.0.108081");
  script_version("$Revision: 6327 $");
  script_tag(name:"last_modification", value:"$Date: 2017-06-13 15:38:15 +0200 (Tue, 13 Jun 2017) $");
  script_tag(name:"creation_date", value:"2017-02-10 10:55:08 +0100 (Fri, 10 Feb 2017)");
  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_name("AKIF Orientierungshilfe Windows 10: Fehler");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2017 Greenbone Networks GmbH");
  script_family("Policy");
  script_dependencies("gb_policy_orientierungshilfe_win10.nasl");
  script_mandatory_keys("policy/orientierungshilfe_win10/error");

  script_tag(name:"summary", value:"Listet alle Fehler der 'AKIF Orientierungshilfe Windows 10 Uberpruefung' auf.");

  script_tag(name:"qod", value:"98");

  exit(0);
}

error = get_kb_item( "policy/orientierungshilfe_win10/error" );
if( ! error ) exit( 0 );

if( "Es koennen keine Ueberpruefungen durchgefuehrt werden." >< error ) {
  report = 'Es trat folgender Fehler auf:\n' + error + '\n';
  log_message( data:report, port:0 );
} else {

  error = split( error, sep:"#-#", keep:FALSE );

  report = max_index( error ) + ' Fehler:\n\n';

  foreach line( error ) {
    entry = split( line, sep:"||", keep:FALSE );
    report += "Beschreibung:             " + entry[0] + '\n';
    report += "Nummerierung:             " + entry[1] + '\n';
    report += "Ueberpruefung:            " + entry[2] + '\n';
    if( "Registry" >< entry[2] ) {
      report += "Registry-Key:             " + entry[3] + '\n';
      report += "Registry-Name:            " + entry[4] + '\n';
      report += "Registry-Typ:             " + entry[5] + '\n';
      report += "Erwarteter Registry-Wert: " + entry[6] + '\n';
      report += "Grund:                    " + entry[7] + '\n';
    } else if( "Service" >< entry[2] ) {
      report += "Service-Name:             " + entry[3] + '\n';
      report += "Erwarteter Startup-Type:  " + entry[4] + '\n';
      report += "Grund:                    " + entry[5] + '\n';
    }
    report += '\n';
  }
  log_message( data:report, port:0 );
}

exit( 0 );