Lucene search
+L

Cheops NG Agent Detection

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

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

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 );

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