Lucene search

K

Cheops NG Agent Detection

🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2006 Michel ArboiType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

Cheops NG Agent Detection script identifies a Cheops NG agent running on the remote hos

Show more

AI Insights are available for you today

Leverage the power of AI to quickly understand vulnerabilities, impacts, and exploitability

Refs
Code
# SPDX-FileCopyrightText: 2006 Michel Arboi
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.20160");
  script_version("2023-08-01T13:29:10+0000");
  script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_tag(name:"cvss_base", value:"0.0");
  script_name("Cheops NG Agent Detection");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2006 Michel Arboi");
  script_family("Service detection");
  script_dependencies("find_service.nasl");
  script_require_ports(2300);

  script_xref(name:"URL", value:"http://cheops-ng.sourceforge.net/");

  script_tag(name:"summary", value:"The remote host is running a Cheops NG agent.");

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

  exit(0);
}

include("host_details.inc");
include("port_service_func.inc");

port = 2300;
if( ! get_port_state( port ) )
  exit( 0 );

if( service_is_known( port:port ) )
  exit( 0 );

m1 = '\x00\x00\x00\x14\x00\x0c\x00\x04\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00';
m2 = '\x00\x00\x00\x20\x00\x0c\x00\x02\x00\x00\x00\x00\x01\x00\x00\x7f\x01\x00\x00\x7f\x00\x00\x00\x00\x00\x00\x00\x00\xb8\xdf\x0d\x08';

if( ! soc = open_sock_tcp( port ) )
  exit( 0 );

send( socket:soc, data:m1 );
r = recv( socket:soc, length:512 );
if( strlen( r ) > 0 ) {
  if( substr( r, 0, 7 ) == '\x00\x00\x00\x10\x00\x0c\x00\x6c' ) {
    log_message( port:port );
    service_register( port:port, proto:"cheops-ng" );
    set_kb_item( name:"cheopsNG/password", value:port );
  }
  close( soc );
  exit( 0 );
}

send( socket:soc, data:m2 );
r = recv( socket:soc, length:512 );
l = strlen( r );
if( l >= 8 && substr( r, 0, 2 ) == '\0\0\0' && '\x01\x00\x00\x7f' >< r ) {
  log_message( port:port );
  service_register( port:port, proto:"cheops-ng" );
  set_kb_item( name:"cheopsNG/unprotected", value:port );
}

close( soc );
exit( 0 );

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo
26 Mar 2006 00:00Current
7High risk
Vulners AI Score7
15
.json
Report