ESXi Authorization

2014-07-07T00:00:00
ID OPENVAS:1361412562310105058
Type openvas
Reporter Copyright 2014 Greenbone Networks GmbH
Modified 2017-12-05T00:00:00

Description

This script allows users to enter the information required to authorize and login into ESXi.

These data are used by tests that require authentication.

                                        
                                            ##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_esxi_authorization.nasl 7993 2017-12-05 09:04:08Z cfischer $
#
# Set information for ESXi authorization in KB.
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (C) 2008, 2014 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.105058");
  script_version("$Revision: 7993 $");
  script_tag(name:"last_modification", value:"$Date: 2017-12-05 10:04:08 +0100 (Tue, 05 Dec 2017) $");
  script_tag(name:"creation_date", value:"2014-07-07 10:42:27 +0200 (Mon, 07 Jul 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_name("ESXi Authorization"); # nb: Don't change the script name, this name is hardcoded within some manager functions...
  script_category(ACT_SETTINGS);
  script_copyright("Copyright 2014 Greenbone Networks GmbH");
  script_family("Credentials");

  # Don't change the preference names, those names are hardcoded within some manager functions...
  script_add_preference(name:"ESXi login name:", type:"entry", value:"");
  script_add_preference(name:"ESXi login password:", type:"password", value:"");

  script_tag(name:"summary", value:"This script allows users to enter the information
  required to authorize and login into ESXi.

  These data are used by tests that require authentication.");

  script_tag(name:"qod_type", value:"remote_banner");

  exit(0);
}

esxi_login    = script_get_preference( "ESXi login name:" );
esxi_password = script_get_preference( "ESXi login password:" );

if( esxi_login )    set_kb_item( name:"esxi/login_filled/0", value:esxi_login );
if( esxi_password ) set_kb_item( name:"esxi/password_filled/0", value:esxi_password );

exit( 0 );