EtherNet/IP Detection (TCP)

2017-06-09T00:00:00
ID OPENVAS:1361412562310106850
Type openvas
Reporter Copyright (C) 2017 Greenbone Networks GmbH
Modified 2020-06-12T00:00:00

Description

A EtherNet/IP Service is running at this host.

EtherNet/IP is an industrial network protocol that adapts the Common Industrial Protocol to standard Ethernet. It is widely used in a range industries including factory, hybrid and process to manage the connection between various automation devices such as robots, PLCs, sensors, CNCs and other industrial machines.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# EtherNet/IP Detection
#
# Authors:
# Christian Kuersteiner <christian.kuersteiner@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.106850");
  script_version("2020-06-12T07:18:26+0000");
  script_tag(name:"last_modification", value:"2020-06-12 07:18:26 +0000 (Fri, 12 Jun 2020)");
  script_tag(name:"creation_date", value:"2017-06-09 12:24:29 +0700 (Fri, 09 Jun 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_tag(name:"qod_type", value:"remote_banner");

  script_name("EtherNet/IP Detection (TCP)");

  script_tag(name:"summary", value:"A EtherNet/IP Service is running at this host.

  EtherNet/IP is an industrial network protocol that adapts the Common Industrial Protocol to standard Ethernet.
  It is widely used in a range industries including factory, hybrid and process to manage the connection between
  various automation devices such as robots, PLCs, sensors, CNCs and other industrial machines.");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2017 Greenbone Networks GmbH");
  script_family("Service detection");
  script_dependencies("find_service.nasl");
  script_require_ports(44818);

  exit(0);
}

include("host_details.inc");
include("byte_func.inc");
include("ethernetip.inc");
include("misc_func.inc");

port = 44818;

if (get_port_state(port)) {
  soc = open_sock_tcp(port);

  if (soc) {
    ethip_query(proto: "tcp", soc: soc, port: port);
    close(soc);
  }
}

exit(0);