Lucene search
+L

RICOH Printer Detection (PJL)

🗓️ 29 Aug 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

RICOH Printer Detection using Printer Job Language (PJL) to identify RICOH, LANIER, SAVIN, Gestetner, and NRG printer device

Code
# SPDX-FileCopyrightText: 2019 Greenbone AG
# 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.108630");
  script_version("2024-06-17T08:31:37+0000");
  script_tag(name:"last_modification", value:"2024-06-17 08:31:37 +0000 (Mon, 17 Jun 2024)");
  script_tag(name:"creation_date", value:"2019-08-29 10:01:52 +0000 (Thu, 29 Aug 2019)");
  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("RICOH Printer Detection (PJL)");

  script_tag(name:"summary", value:"Printer Job Language (PJL) based detection of RICOH printer devices.");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Product detection");
  script_dependencies("gb_pcl_pjl_detect.nasl");
  script_require_ports("Services/hp-pjl", 9100);
  script_mandatory_keys("hp-pjl/banner/available");

  exit(0);
}

port = get_kb_item("hp-pjl/port");

banner = get_kb_item("hp-pjl/" + port + "/banner");
if (!banner || banner !~ "^(RICOH|LANIER|SAVIN|Gestetner|NRG) ")
  exit(0);

model = "unknown";
brand = "unknown";
version = "unknown";

set_kb_item(name: "ricoh/printer/detected", value: TRUE);
set_kb_item(name: "ricoh/printer/hp-pjl/detected", value: TRUE);
set_kb_item(name: "ricoh/printer/hp-pjl/port", value: port);
set_kb_item(name: "ricoh/printer/hp-pjl/" + port + "/concluded", value: banner);

# RICOH MP C4504
# RICOH Aficio MP 5000
# RICOH Aficio MP C305
# RICOH Aficio MP 3350B
# RICOH Aficio 2022
# RICOH MP C406Z
# RICOH IM C2000
# RICOH MP C3004ex
# RICOH SP 4510SF
# RICOH Pro 8120S
# RICOH SP 230DNw:84U-HE3:Ver.1.05
# SAVIN MP 6002
mod = eregmatch(pattern: "^(RICOH|LANIER|SAVIN|Gestetner|NRG) ((Aficio )?[^ ]+ [^ :]*)(:[^:]+:Ver.([.0-9]+))?", string: banner);
if (!isnull(mod[1]))
  brand = mod[1];
if (!isnull(mod[2]))
  model = mod[2];
if (!isnull(mod[5]))
  version = mod[5];

set_kb_item(name: "ricoh/printer/hp-pjl/" + port + "/model", value: model);
set_kb_item(name: "ricoh/printer/hp-pjl/" + port + "/brand", value: brand);
set_kb_item(name: "ricoh/printer/hp-pjl/" + port + "/fw_version", value: version);

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