Lucene search
K

Eric Cooperation Server Detection

🗓️ 25 Mar 2011 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 22 Views

The remote host is running an Eric cooperation server. Eric is a Python IDE

Refs
Code
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include("compat.inc");

if(description)
{
  script_id(52974);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_name(english:"Eric Cooperation Server Detection");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running a chat service.");
  script_set_attribute(attribute:"description", value:
"The remote host is running an Eric cooperation server.  Eric is a
Python IDE.");
  script_set_attribute(attribute:"see_also", value:"http://eric-ide.python-projects.org/");
  script_set_attribute(attribute:"solution", value:
"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2011/03/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:eric_integrated_development_environment:eric_integrated_development_environment");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Service detection");

  script_copyright(english:"This script is Copyright (C) 2011-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("find_service2.nasl");
  script_require_ports(42000, "Services/unknown");

  exit(0);
}

include ("global_settings.inc");
include ("misc_func.inc");

if (
  thorough_tests &&
  !get_kb_item("global_settings/disable_service_discovery")
)
{
  port = get_unknown_svc(42000);
  if (!port) exit(0);
}
else port = 42000;

if (!get_tcp_port_state(port)) exit(0, "TCP port "+port+" is closed.");
if (silent_service(port)) exit(0, "The service on port "+port+" is 'silent'.");
if (known_service(port:port)) exit(0, "The service on port "+port+" is known already.");

b = get_unknown_banner2(port: port, dontfetch: 1);
if (! isnull(b) && strlen(b[0]) > 0)
{
  foreach k (make_list("spontaneous", "get_http", "help"))
    if (b[1] == v)
      exit(0, "Eric is not running on port "+port+".");
}

s = open_sock_tcp(port);
if (! s) exit(1, "Cannot connect to TCP port "+port+".");
cmd = 'nessus:'+ (65536 - port);
len = strlen(cmd);
send(socket: s, data: 'GREETING|||'+len+'|||'+cmd);
r = recv(socket: s, length: 1024);
close(s);

if (r == cmd) exit(0, "The service on port "+port+" looks like echo.");

v = eregmatch(string: r, pattern: 
  '^GREETING\\|\\|\\|([0-9]+)\\|\\|\\|(([^:|]+):([0-9]+))$' );
if (! isnull(v))
{
  if (int(v[1]) == strlen(v[2]))
  {
    register_service(port: port, proto: 'eric-coop');
    txt = '\nEric is run by user \'' + v[3] + '\' on port '+ v[4] + '.\n';
    security_note(port:port, extra: txt);
    exit(0);
  }
}
exit(0, "Eric is not running on port "+port+".");

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Apr 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
22