Lucene search
+L

Operating System (OS) Detection (RTSP)

🗓️ 23 Jul 2018 00:00:00Reported by Copyright (C) 2018 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

Operating System (OS) Detection (RTSP) using RTSP server banne

Code
# Copyright (C) 2018 Greenbone Networks GmbH
# 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-or-later
#
# 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.108451");
  script_version("2021-05-20T09:32:28+0000");
  script_tag(name:"last_modification", value:"2021-05-20 09:32:28 +0000 (Thu, 20 May 2021)");
  script_tag(name:"creation_date", value:"2018-07-23 10:06:14 +0200 (Mon, 23 Jul 2018)");
  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("Operating System (OS) Detection (RTSP)");
  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("Copyright (C) 2018 Greenbone Networks GmbH");
  script_dependencies("rtsp_detect.nasl");
  script_mandatory_keys("RTSP/server_or_auth_banner/available");

  script_tag(name:"summary", value:"RTSP server based Operating System (OS) detection.");

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

  exit(0);
}

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

SCRIPT_DESC = "Operating System (OS) Detection (RTSP)";
BANNER_TYPE = "RTSP Server banner";

port = service_get_port( default:554, proto:"rtsp" );

if( server_banner = get_kb_item( "RTSP/" + port + "/server_banner" ) ) {

  # Server: IQinVision Embedded 1.0
  if( "IQinVision Embedded" >< server_banner ) {
    os_register_and_report( os:"Linux/Unix (Embedded)", cpe:"cpe:/o:linux:kernel", banner_type:BANNER_TYPE, port:port, banner:server_banner, desc:SCRIPT_DESC, runs_key:"unixoide" );
    exit( 0 );
  }

  # Server: GStreamer RTSP server
  # Cross-Platform
  if( server_banner !~ "^Server\s*:\s*GStreamer RTSP server$" )
    unknown_banner = server_banner;
}

if( auth_banner = get_kb_item( "RTSP/" + port + "/auth_banner" ) ) {

  auth_banner_lo = tolower( auth_banner );

  # WWW-Authenticate: Basic realm="DahuaRtsp"
  # nb: Having Server: Rtsp Server/2.0 as its banner
  if( 'basic realm="dahuartsp"' >< auth_banner_lo ) {
    os_register_and_report( os:"Linux/Unix (Embedded)", cpe:"cpe:/o:linux:kernel", banner_type:BANNER_TYPE, port:port, banner:auth_banner, desc:SCRIPT_DESC, runs_key:"unixoide" );
    exit( 0 );
  }

  if( unknown_banner )
    unknown_banner += '\n';
  unknown_banner += auth_banner;
}

if( unknown_banner )
  os_register_unknown_banner( banner:unknown_banner, banner_type_name:BANNER_TYPE, banner_type_short:"rtsp_banner", port:port );

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