Vulnerabilities > CVE-2007-5381 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Cisco IOS

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
cisco
CWE-119
nessus
exploit available

Summary

Stack-based buffer overflow in the Line Printer Daemon (LPD) in Cisco IOS before 12.2(18)SXF11, 12.4(16a), and 12.4(2)T6 allow remote attackers to execute arbitrary code by setting a long hostname on the target system, then causing an error message to be printed, as demonstrated by a telnet session to the LPD from a source port other than 515.

Vulnerable Configurations

Part Description Count
OS
Cisco
1429

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionCisco IOS 12.3 LPD Remote Buffer Overflow Vulnerability. CVE-2007-5381. Remote exploit for hardware platform
idEDB-ID:30652
last seen2016-02-03
modified2007-10-10
published2007-10-10
reporterAndy Davis
sourcehttps://www.exploit-db.com/download/30652/
titleCisco IOS <= 12.3 LPD Remote Buffer Overflow Vulnerability

Nessus

NASL familyCISCO
NASL idCISCO-SR-20071010-LPD.NASL
descriptionOn October 10 2007, Cisco released a security response for a vulnerability in the Line Printer Daemon (LPD) in IOS. Exploitation of this vulnerability could result in arbitrary code execution. This plugin checks if the appropriate fix for the advisory has been installed.
last seen2019-10-28
modified2012-01-10
plugin id17791
published2012-01-10
reporterThis script is (C) 2012-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/17791
titleCisco IOS Line Printer Daemon (LPD) Stack Overflow
code
#TRUSTED 2a2d8b3e41ef23bb580859add3418fe6bf40cf215014975d8894d2874487b47f06347e9ed5dd617397450875a5ea3fb5d7244138ffdf154ed8c417574ddd5877ba586238755d9a6d9964978d574a4ffa41ac902c32cf81a91ba0405c89b844c589d4f08f20eb33ba4db87089d656c6723adb7c6557f2e9dd821c4ec9f21e77b707404e5038b93f0b405886fc1a43423c32175569f4d262bfb59c8d85ce8e544de6e43efb99ca495a0cd0d76742dbb5330605f3da47e0ab8c4aca8b06f5a74a71927f5ffac42e53f343a7bf63f522991fa07c407cc4a92d6c7a471acfdf509b475d167e46ab31479797d97342e42f36cc5896e475361c4f26133898dcc8253a8e09168d5708092b026c1d06569b15bf48f0e13d369b9b8798f1d190be17118b1089888cc9b87b30dd903f6181ce61476cc93e63a5958b734eaa4f7336f1ab37b8e4ac963224250ddbffa349b7acfe42ff6c5195d6da98b70a04abe85bfe3c32e80c5ea7cc53681990e0ac789294eaa19329e7d7d1cdb005490f763567d0a5d5603df31aac93ea58ba979c008c155cf4cfd24879486bb8a2670b10882c95460740e2836215c9f54aabb84db5ba9d1c654fb45f0567eccb60599a5096d7c40a6c871423871b05dd3519fbf51a4df5f8873efb8e3880ac5f9e6ee9d6177e0b8cbccb5037cd58a04f8d0fe9c1f9b5d74bb41b354247f66a41293ba3d15a3d2513dc9b
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(17791);
 script_version("1.11");
 script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/06");

 script_cve_id("CVE-2007-5381");
 script_bugtraq_id(26001);
 script_xref(name:"CERT", value:"230505");
 script_xref(name:"CISCO-BUG-ID", value:"CSCsj86725");
 script_xref(name:"CISCO-SR", value:"cisco-sr-20071010-lpd");

 script_name(english:"Cisco IOS Line Printer Daemon (LPD) Stack Overflow");
 script_summary(english:"Checks the version of Cisco IOS");

 script_set_attribute(attribute:"synopsis", value:"The remote device is missing a vendor-supplied security patch.");
 script_set_attribute(attribute:"description", value:
"On October 10 2007, Cisco released a security response for a
vulnerability in the Line Printer Daemon (LPD) in IOS.  Exploitation
of this vulnerability could result in arbitrary code execution.  This
plugin checks if the appropriate fix for the advisory has been
installed.");
 script_set_attribute(attribute:"see_also", value:"http://www.cisco.com/en/US/products/csr/cisco-sr-20071010-lpd.html");
 script_set_attribute(attribute:"solution", value:"Upgrade to IOS version 12.2(18)SXF11, 12.4(16a), 12.4(2)T6 or greater.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(119);

 script_set_attribute(attribute:"vuln_publication_date", value:"2007/01/24");
 script_set_attribute(attribute:"patch_publication_date", value:"2007/01/24");
 script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/10");

 script_set_attribute(attribute:"plugin_type", value:"combined");
 script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is (C) 2012-2018 Tenable Network Security, Inc.");
 script_family(english:"CISCO");

 script_dependencie("cisco_ios_version.nasl");
 script_require_keys("Host/Cisco/IOS/Version");
 exit(0);
}

include("audit.inc");
include("cisco_func.inc");
include("cisco_kb_cmd_func.inc");

flag = 0;
override = 0;
version = get_kb_item_or_exit("Host/Cisco/IOS/Version");

if (version == '12.2(100)EWA') flag++;
else if (version == '12.2(101)EWA') flag++;
else if (version == '12.2(102)EWA') flag++;
else if (version == '12.2(11r)YZ') flag++;
else if (version == '12.2(11r)YZ1') flag++;
else if (version == '12.2(11r)YZ2') flag++;
else if (version == '12.2(11r)YZ3') flag++;
else if (version == '12.2(11)YX') flag++;
else if (version == '12.2(11)YX1') flag++;
else if (version == '12.2(11)YZ') flag++;
else if (version == '12.2(11)YZ1') flag++;
else if (version == '12.2(11)YZ2') flag++;
else if (version == '12.2(11)YZ3') flag++;
else if (version == '12.2(13)ZF') flag++;
else if (version == '12.2(13)ZF1') flag++;
else if (version == '12.2(13)ZF2') flag++;
else if (version == '12.2(13)ZG') flag++;
else if (version == '12.2(13)ZH') flag++;
else if (version == '12.2(13)ZH1') flag++;
else if (version == '12.2(13)ZH2') flag++;
else if (version == '12.2(13)ZH3') flag++;
else if (version == '12.2(13)ZH4') flag++;
else if (version == '12.2(13)ZH5') flag++;
else if (version == '12.2(13)ZH6') flag++;
else if (version == '12.2(13)ZH7') flag++;
else if (version == '12.2(13)ZH8') flag++;
else if (version == '12.2(13)ZH9') flag++;
else if (version == '12.2(14)ZA') flag++;
else if (version == '12.2(14)ZA1') flag++;
else if (version == '12.2(14)ZA2') flag++;
else if (version == '12.2(14)ZA3') flag++;
else if (version == '12.2(14)ZA4') flag++;
else if (version == '12.2(14)ZA5') flag++;
else if (version == '12.2(14)ZA6') flag++;
else if (version == '12.2(14)ZA7') flag++;
else if (version == '12.2(15)ZL') flag++;
else if (version == '12.2(15)ZL1') flag++;
else if (version == '12.2(17b)SXA') flag++;
else if (version == '12.2(17b)SXA1') flag++;
else if (version == '12.2(17b)SXA2') flag++;
else if (version == '12.2(17d)SXB') flag++;
else if (version == '12.2(17d)SXB1') flag++;
else if (version == '12.2(17d)SXB10') flag++;
else if (version == '12.2(17d)SXB11') flag++;
else if (version == '12.2(17d)SXB11a') flag++;
else if (version == '12.2(17d)SXB2') flag++;
else if (version == '12.2(17d)SXB3') flag++;
else if (version == '12.2(17d)SXB4') flag++;
else if (version == '12.2(17d)SXB5') flag++;
else if (version == '12.2(17d)SXB6') flag++;
else if (version == '12.2(17d)SXB7') flag++;
else if (version == '12.2(17d)SXB8') flag++;
else if (version == '12.2(17d)SXB9') flag++;
else if (version == '12.2(17r)SXB3') flag++;
else if (version == '12.2(18)IXA') flag++;
else if (version == '12.2(18)IXB') flag++;
else if (version == '12.2(18)IXB1') flag++;
else if (version == '12.2(18)IXB2') flag++;
else if (version == '12.2(18)IXC') flag++;
else if (version == '12.2(18)IXD') flag++;
else if (version == '12.2(18)IXD1') flag++;
else if (version == '12.2(18)IXF') flag++;
else if (version == '12.2(18)IXF1') flag++;
else if (version == '12.2(18)IXG') flag++;
else if (version == '12.2(18)IXH') flag++;
else if (version == '12.2(18)IXH1') flag++;
else if (version == '12.2(18)SXD') flag++;
else if (version == '12.2(18)SXD1') flag++;
else if (version == '12.2(18)SXD2') flag++;
else if (version == '12.2(18)SXD3') flag++;
else if (version == '12.2(18)SXD4') flag++;
else if (version == '12.2(18)SXD5') flag++;
else if (version == '12.2(18)SXD6') flag++;
else if (version == '12.2(18)SXD7') flag++;
else if (version == '12.2(18)SXD7a') flag++;
else if (version == '12.2(18)SXD7b') flag++;
else if (version == '12.2(18)SXE') flag++;
else if (version == '12.2(18)SXE1') flag++;
else if (version == '12.2(18)SXE2') flag++;
else if (version == '12.2(18)SXE3') flag++;
else if (version == '12.2(18)SXE4') flag++;
else if (version == '12.2(18)SXE5') flag++;
else if (version == '12.2(18)SXE6') flag++;
else if (version == '12.2(18)SXE6a') flag++;
else if (version == '12.2(18)SXE6b') flag++;
else if (version == '12.2(18)SXF') flag++;
else if (version == '12.2(18)SXF1') flag++;
else if (version == '12.2(18)SXF10') flag++;
else if (version == '12.2(18)SXF10a') flag++;
else if (version == '12.2(18)SXF2') flag++;
else if (version == '12.2(18)SXF3') flag++;
else if (version == '12.2(18)SXF4') flag++;
else if (version == '12.2(18)SXF5') flag++;
else if (version == '12.2(18)SXF6') flag++;
else if (version == '12.2(18)SXF7') flag++;
else if (version == '12.2(18)SXF8') flag++;
else if (version == '12.2(18)SXF9') flag++;
else if (version == '12.2(18)ZU') flag++;
else if (version == '12.2(18)ZU1') flag++;
else if (version == '12.2(18)ZU2') flag++;
else if (version == '12.2(18)ZY') flag++;
else if (version == '12.2(18)ZY1') flag++;
else if (version == '12.2(18)ZY2') flag++;
else if (version == '12.2(20)EWA') flag++;
else if (version == '12.2(20)EWA1') flag++;
else if (version == '12.2(20)EWA2') flag++;
else if (version == '12.2(20)EWA3') flag++;
else if (version == '12.2(20)EWA4') flag++;
else if (version == '12.2(25)EWA') flag++;
else if (version == '12.2(25)EWA1') flag++;
else if (version == '12.2(25)EWA10') flag++;
else if (version == '12.2(25)EWA11') flag++;
else if (version == '12.2(25)EWA12') flag++;
else if (version == '12.2(25)EWA13') flag++;
else if (version == '12.2(25)EWA14') flag++;
else if (version == '12.2(25)EWA2') flag++;
else if (version == '12.2(25)EWA3') flag++;
else if (version == '12.2(25)EWA4') flag++;
else if (version == '12.2(25)EWA5') flag++;
else if (version == '12.2(25)EWA6') flag++;
else if (version == '12.2(25)EWA7') flag++;
else if (version == '12.2(25)EWA8') flag++;
else if (version == '12.2(25)EWA9') flag++;
else if (version == '12.2(25)SEA') flag++;
else if (version == '12.2(25)SEB') flag++;
else if (version == '12.2(25)SEB1') flag++;
else if (version == '12.2(25)SEB2') flag++;
else if (version == '12.2(25)SEB3') flag++;
else if (version == '12.2(25)SEB4') flag++;
else if (version == '12.2(25)SEC') flag++;
else if (version == '12.2(25)SEC1') flag++;
else if (version == '12.2(25)SEC2') flag++;
else if (version == '12.2(25)SED') flag++;
else if (version == '12.2(25)SED1') flag++;
else if (version == '12.2(25)SEE') flag++;
else if (version == '12.2(25)SEE1') flag++;
else if (version == '12.2(25)SEE2') flag++;
else if (version == '12.2(25)SEE3') flag++;
else if (version == '12.2(25)SEE4') flag++;
else if (version == '12.2(25)SEF') flag++;
else if (version == '12.2(25)SEF1') flag++;
else if (version == '12.2(25)SEF2') flag++;
else if (version == '12.2(25)SEF3') flag++;
else if (version == '12.2(25)SEG') flag++;
else if (version == '12.2(25)SEG1') flag++;
else if (version == '12.2(25)SEG2') flag++;
else if (version == '12.2(25)SEG3') flag++;
else if (version == '12.2(25)SEG4') flag++;
else if (version == '12.2(25)SEG5') flag++;
else if (version == '12.2(25)SEG6') flag++;
else if (version == '12.2(27)SBA') flag++;
else if (version == '12.2(27)SBA1') flag++;
else if (version == '12.2(27)SBA2') flag++;
else if (version == '12.2(27)SBA3') flag++;
else if (version == '12.2(27)SBA4') flag++;
else if (version == '12.2(27)SBA5') flag++;
else if (version == '12.2(27)SBA6') flag++;
else if (version == '12.2(27)SBB') flag++;
else if (version == '12.2(27)SBB1') flag++;
else if (version == '12.2(27)SBB2') flag++;
else if (version == '12.2(27)SBB2a') flag++;
else if (version == '12.2(27)SBB3') flag++;
else if (version == '12.2(27)SBB4') flag++;
else if (version == '12.2(27)SBB4a') flag++;
else if (version == '12.2(27)SBB4b') flag++;
else if (version == '12.2(27)SBB4c') flag++;
else if (version == '12.2(27)SBB4d') flag++;
else if (version == '12.2(27)SBB5') flag++;
else if (version == '12.2(27)SBB6') flag++;
else if (version == '12.2(27)SBB6a') flag++;
else if (version == '12.2(27)SBB7') flag++;
else if (version == '12.2(27)SBB8') flag++;
else if (version == '12.2(27)SBC') flag++;
else if (version == '12.2(27)SBC1') flag++;
else if (version == '12.2(27)SBC2') flag++;
else if (version == '12.2(27)SBC3') flag++;
else if (version == '12.2(27)SBC4') flag++;
else if (version == '12.2(27)SBC5') flag++;
else if (version == '12.2(27)SBKA1') flag++;
else if (version == '12.2(27)SBKA2') flag++;
else if (version == '12.2(27)SBKA3') flag++;
else if (version == '12.2(27)SBKA4') flag++;
else if (version == '12.2(27)SBKA5') flag++;
else if (version == '12.2(27)SBKB') flag++;
else if (version == '12.2(27)SBKB1') flag++;
else if (version == '12.2(27)SBKB10') flag++;
else if (version == '12.2(27)SBKB2') flag++;
else if (version == '12.2(27)SBKB3') flag++;
else if (version == '12.2(27)SBKB4') flag++;
else if (version == '12.2(27)SBKB5') flag++;
else if (version == '12.2(27)SBKB6') flag++;
else if (version == '12.2(27)SBKB8') flag++;
else if (version == '12.2(27)SBKB9') flag++;
else if (version == '12.2(27)TEST2') flag++;
else if (version == '12.2(27)TST11') flag++;
else if (version == '12.2(27)TST8') flag++;
else if (version == '12.2(28a)ZV1') flag++;
else if (version == '12.2(28b)ZV1') flag++;
else if (version == '12.2(28)FSU') flag++;
else if (version == '12.2(28)ZV') flag++;
else if (version == '12.2(28)ZV1') flag++;
else if (version == '12.2(28)ZV2') flag++;
else if (version == '12.2(28)ZX') flag++;
else if (version == '12.2(29)SVA2') flag++;
else if (version == '12.2(31)SBY') flag++;
else if (version == '12.2(31)SBY1') flag++;
else if (version == '12.2(31)SGA') flag++;
else if (version == '12.2(31)SGA1') flag++;
else if (version == '12.2(31)SGA10') flag++;
else if (version == '12.2(31)SGA11') flag++;
else if (version == '12.2(31)SGA2') flag++;
else if (version == '12.2(31)SGA3') flag++;
else if (version == '12.2(31)SGA4') flag++;
else if (version == '12.2(31)SGA5') flag++;
else if (version == '12.2(31)SGA6') flag++;
else if (version == '12.2(31)SGA7') flag++;
else if (version == '12.2(31)SGA8') flag++;
else if (version == '12.2(31)SGA9') flag++;
else if (version == '12.2(31)TST5') flag++;
else if (version == '12.2(31)ZV') flag++;
else if (version == '12.2(31)ZV0a') flag++;
else if (version == '12.2(31)ZV0b') flag++;
else if (version == '12.2(31)ZV0c') flag++;
else if (version == '12.2(31)ZV0d') flag++;
else if (version == '12.2(31)ZV0e') flag++;
else if (version == '12.2(33r)SRB') flag++;
else if (version == '12.2(33r)SRB1') flag++;
else if (version == '12.2(33r)SRB2') flag++;
else if (version == '12.2(33r)SRB3') flag++;
else if (version == '12.2(33r)SRB4') flag++;
else if (version == '12.2(33r)SRC1') flag++;
else if (version == '12.2(33r)SRC2') flag++;
else if (version == '12.2(33)SRA') flag++;
else if (version == '12.2(33)SRA1') flag++;
else if (version == '12.2(33)SRA2') flag++;
else if (version == '12.2(33)SRA3') flag++;
else if (version == '12.2(33)SRA4') flag++;
else if (version == '12.2(33)SRA5') flag++;
else if (version == '12.2(33)SRB') flag++;
else if (version == '12.2(33)SRB1') flag++;
else if (version == '12.2(33)SXH') flag++;
else if (version == '12.2(33)SXH0a') flag++;
else if (version == '12.2(33)ZW') flag++;
else if (version == '12.2(73)TST') flag++;
else if (version == '12.2(9909)TEST') flag++;
else if (version == '12.2(9999)SRA') flag++;
else if (version == '12.2(9999)SRA2') flag++;
else if (version == '12.2(9)ZA') flag++;
else if (version == '12.3(1)') flag++;
else if (version == '12.3(10)') flag++;
else if (version == '12.3(10a)') flag++;
else if (version == '12.3(10a)M0') flag++;
else if (version == '12.3(10b)') flag++;
else if (version == '12.3(10c)') flag++;
else if (version == '12.3(10d)') flag++;
else if (version == '12.3(10e)') flag++;
else if (version == '12.3(10f)') flag++;
else if (version == '12.3(11)JA') flag++;
else if (version == '12.3(11)JA1') flag++;
else if (version == '12.3(11)JA2') flag++;
else if (version == '12.3(11)JA3') flag++;
else if (version == '12.3(11)JA4') flag++;
else if (version == '12.3(11)JX') flag++;
else if (version == '12.3(11)JX1') flag++;
else if (version == '12.3(11r)T') flag++;
else if (version == '12.3(11r)T1') flag++;
else if (version == '12.3(11r)T2') flag++;
else if (version == '12.3(11)T') flag++;
else if (version == '12.3(11)T1') flag++;
else if (version == '12.3(11)T10') flag++;
else if (version == '12.3(11)T11') flag++;
else if (version == '12.3(11)T12') flag++;
else if (version == '12.3(11)T2') flag++;
else if (version == '12.3(11)T2a') flag++;
else if (version == '12.3(11)T3') flag++;
else if (version == '12.3(11)T4') flag++;
else if (version == '12.3(11)T5') flag++;
else if (version == '12.3(11)T6') flag++;
else if (version == '12.3(11)T7') flag++;
else if (version == '12.3(11)T8') flag++;
else if (version == '12.3(11)T9') flag++;
else if (version == '12.3(11)TO3') flag++;
else if (version == '12.3(11)XL') flag++;
else if (version == '12.3(11)XL1') flag++;
else if (version == '12.3(11)XL2') flag++;
else if (version == '12.3(11)XL3') flag++;
else if (version == '12.3(11)YF') flag++;
else if (version == '12.3(11)YF1') flag++;
else if (version == '12.3(11)YF2') flag++;
else if (version == '12.3(11)YF3') flag++;
else if (version == '12.3(11)YF4') flag++;
else if (version == '12.3(11)YJ') flag++;
else if (version == '12.3(11)YK') flag++;
else if (version == '12.3(11)YK1') flag++;
else if (version == '12.3(11)YK2') flag++;
else if (version == '12.3(11)YK3') flag++;
else if (version == '12.3(11)YL') flag++;
else if (version == '12.3(11)YL1') flag++;
else if (version == '12.3(11)YL2') flag++;
else if (version == '12.3(11)YN') flag++;
else if (version == '12.3(11)YR') flag++;
else if (version == '12.3(11)YR1') flag++;
else if (version == '12.3(11)YS') flag++;
else if (version == '12.3(11)YS1') flag++;
else if (version == '12.3(11)YS2') flag++;
else if (version == '12.3(11)YW') flag++;
else if (version == '12.3(11)YW1') flag++;
else if (version == '12.3(11)YW2') flag++;
else if (version == '12.3(11)YW3') flag++;
else if (version == '12.3(11)YZ') flag++;
else if (version == '12.3(11)YZ1') flag++;
else if (version == '12.3(11)YZ2') flag++;
else if (version == '12.3(11)ZB') flag++;
else if (version == '12.3(11)ZB1') flag++;
else if (version == '12.3(11)ZB2') flag++;
else if (version == '12.3(12)') flag++;
else if (version == '12.3(12a)') flag++;
else if (version == '12.3(12b)') flag++;
else if (version == '12.3(12c)') flag++;
else if (version == '12.3(12d)') flag++;
else if (version == '12.3(12e)') flag++;
else if (version == '12.3(12r)T') flag++;
else if (version == '12.3(12r)T1') flag++;
else if (version == '12.3(12r)T2') flag++;
else if (version == '12.3(13)') flag++;
else if (version == '12.3(13a)') flag++;
else if (version == '12.3(13a)BC') flag++;
else if (version == '12.3(13a)BC1') flag++;
else if (version == '12.3(13a)BC2') flag++;
else if (version == '12.3(13a)BC3') flag++;
else if (version == '12.3(13a)BC4') flag++;
else if (version == '12.3(13a)BC5') flag++;
else if (version == '12.3(13a)BC6') flag++;
else if (version == '12.3(13b)') flag++;
else if (version == '12.3(14r)T') flag++;
else if (version == '12.3(14r)T1') flag++;
else if (version == '12.3(14)T') flag++;
else if (version == '12.3(14)T1') flag++;
else if (version == '12.3(14)T2') flag++;
else if (version == '12.3(14)T3') flag++;
else if (version == '12.3(14)T4') flag++;
else if (version == '12.3(14)T5') flag++;
else if (version == '12.3(14)T6') flag++;
else if (version == '12.3(14)T7') flag++;
else if (version == '12.3(14)YM') flag++;
else if (version == '12.3(14)YM0707') flag++;
else if (version == '12.3(14)YM1') flag++;
else if (version == '12.3(14)YM10') flag++;
else if (version == '12.3(14)YM11') flag++;
else if (version == '12.3(14)YM2') flag++;
else if (version == '12.3(14)YM3') flag++;
else if (version == '12.3(14)YM4') flag++;
else if (version == '12.3(14)YM5') flag++;
else if (version == '12.3(14)YM6') flag++;
else if (version == '12.3(14)YM7') flag++;
else if (version == '12.3(14)YM8') flag++;
else if (version == '12.3(14)YM9') flag++;
else if (version == '12.3(14)YQ') flag++;
else if (version == '12.3(14)YQ051806') flag++;
else if (version == '12.3(14)YQ1') flag++;
else if (version == '12.3(14)YQ2') flag++;
else if (version == '12.3(14)YQ3') flag++;
else if (version == '12.3(14)YQ4') flag++;
else if (version == '12.3(14)YQ5') flag++;
else if (version == '12.3(14)YQ6') flag++;
else if (version == '12.3(14)YQ7') flag++;
else if (version == '12.3(14)YQ8') flag++;
else if (version == '12.3(14)YT') flag++;
else if (version == '12.3(14)YT1') flag++;
else if (version == '12.3(14)YU') flag++;
else if (version == '12.3(14)YU1') flag++;
else if (version == '12.3(14)YX') flag++;
else if (version == '12.3(14)YX1') flag++;
else if (version == '12.3(14)YX2') flag++;
else if (version == '12.3(14)YX3') flag++;
else if (version == '12.3(14)YX4') flag++;
else if (version == '12.3(14)YX5') flag++;
else if (version == '12.3(14)YX7') flag++;
else if (version == '12.3(14)YX8') flag++;
else if (version == '12.3(15)') flag++;
else if (version == '12.3(15a)') flag++;
else if (version == '12.3(15b)') flag++;
else if (version == '12.3(16)') flag++;
else if (version == '12.3(16a)') flag++;
else if (version == '12.3(17)') flag++;
else if (version == '12.3(17a)') flag++;
else if (version == '12.3(17a)BC') flag++;
else if (version == '12.3(17a)BC1') flag++;
else if (version == '12.3(17a)BC2') flag++;
else if (version == '12.3(17b)') flag++;
else if (version == '12.3(17b)BC3') flag++;
else if (version == '12.3(17b)BC4') flag++;
else if (version == '12.3(17b)BC5') flag++;
else if (version == '12.3(17b)BC6') flag++;
else if (version == '12.3(17b)BC7') flag++;
else if (version == '12.3(17b)BC8') flag++;
else if (version == '12.3(17b)BC9') flag++;
else if (version == '12.3(18)') flag++;
else if (version == '12.3(18a)') flag++;
else if (version == '12.3(18r)S1') flag++;
else if (version == '12.3(18r)S2') flag++;
else if (version == '12.3(18r)SX1') flag++;
else if (version == '12.3(19)') flag++;
else if (version == '12.3(19a)') flag++;
else if (version == '12.3(1a)') flag++;
else if (version == '12.3(1a)B') flag++;
else if (version == '12.3(1a)BW') flag++;
else if (version == '12.3(1)FIPS140') flag++;
else if (version == '12.3(1r)T') flag++;
else if (version == '12.3(1r)T1') flag++;
else if (version == '12.3(20)') flag++;
else if (version == '12.3(20a)') flag++;
else if (version == '12.3(21)') flag++;
else if (version == '12.3(21a)') flag++;
else if (version == '12.3(21a)BC1') flag++;
else if (version == '12.3(21a)BC2') flag++;
else if (version == '12.3(21a)BC3') flag++;
else if (version == '12.3(21b)') flag++;
else if (version == '12.3(21)BC') flag++;
else if (version == '12.3(22)') flag++;
else if (version == '12.3(22a)') flag++;
else if (version == '12.3(23)') flag++;
else if (version == '12.3(24)') flag++;
else if (version == '12.3(26)') flag++;
else if (version == '12.3(2)JA') flag++;
else if (version == '12.3(2)JA1') flag++;
else if (version == '12.3(2)JA2') flag++;
else if (version == '12.3(2)JA3') flag++;
else if (version == '12.3(2)JA4') flag++;
else if (version == '12.3(2)JA5') flag++;
else if (version == '12.3(2)JA6') flag++;
else if (version == '12.3(2)JK') flag++;
else if (version == '12.3(2)JK1') flag++;
else if (version == '12.3(2)JK2') flag++;
else if (version == '12.3(2)JK3') flag++;
else if (version == '12.3(2)JL') flag++;
else if (version == '12.3(2)JL1') flag++;
else if (version == '12.3(2)JL2') flag++;
else if (version == '12.3(2)JL3') flag++;
else if (version == '12.3(2)JL4') flag++;
else if (version == '12.3(2l)JK') flag++;
else if (version == '12.3(2l)JL') flag++;
else if (version == '12.3(2)T') flag++;
else if (version == '12.3(2)T1') flag++;
else if (version == '12.3(2)T2') flag++;
else if (version == '12.3(2)T3') flag++;
else if (version == '12.3(2)T4') flag++;
else if (version == '12.3(2)T5') flag++;
else if (version == '12.3(2)T6') flag++;
else if (version == '12.3(2)T7') flag++;
else if (version == '12.3(2)T8') flag++;
else if (version == '12.3(2)T9') flag++;
else if (version == '12.3(2)XA') flag++;
else if (version == '12.3(2)XA1') flag++;
else if (version == '12.3(2)XA2') flag++;
else if (version == '12.3(2)XA3') flag++;
else if (version == '12.3(2)XA4') flag++;
else if (version == '12.3(2)XA5') flag++;
else if (version == '12.3(2)XA6') flag++;
else if (version == '12.3(2)XC') flag++;
else if (version == '12.3(2)XC1') flag++;
else if (version == '12.3(2)XC2') flag++;
else if (version == '12.3(2)XC3') flag++;
else if (version == '12.3(2)XC4') flag++;
else if (version == '12.3(2)XC5') flag++;
else if (version == '12.3(2)XE') flag++;
else if (version == '12.3(2)XE1') flag++;
else if (version == '12.3(2)XE2') flag++;
else if (version == '12.3(2)XE3') flag++;
else if (version == '12.3(2)XE4') flag++;
else if (version == '12.3(2)XE5') flag++;
else if (version == '12.3(2)XF') flag++;
else if (version == '12.3(2)XT') flag++;
else if (version == '12.3(2)XT1') flag++;
else if (version == '12.3(2)XT2') flag++;
else if (version == '12.3(2)XT3') flag++;
else if (version == '12.3(2)XZ') flag++;
else if (version == '12.3(2)XZ1') flag++;
else if (version == '12.3(2)XZ2') flag++;
else if (version == '12.3(3)') flag++;
else if (version == '12.3(3a)') flag++;
else if (version == '12.3(3b)') flag++;
else if (version == '12.3(3)B') flag++;
else if (version == '12.3(3)B1') flag++;
else if (version == '12.3(3c)') flag++;
else if (version == '12.3(3d)') flag++;
else if (version == '12.3(3e)') flag++;
else if (version == '12.3(3f)') flag++;
else if (version == '12.3(3f)SAVE') flag++;
else if (version == '12.3(3g)') flag++;
else if (version == '12.3(3h)') flag++;
else if (version == '12.3(3i)') flag++;
else if (version == '12.3(4)INF') flag++;
else if (version == '12.3(4)JA') flag++;
else if (version == '12.3(4)JA1') flag++;
else if (version == '12.3(4)JA2') flag++;
else if (version == '12.3(4r)T') flag++;
else if (version == '12.3(4r)T1') flag++;
else if (version == '12.3(4r)T2') flag++;
else if (version == '12.3(4r)T3') flag++;
else if (version == '12.3(4r)T4') flag++;
else if (version == '12.3(4r)XD') flag++;
else if (version == '12.3(4)T') flag++;
else if (version == '12.3(4)T1') flag++;
else if (version == '12.3(4)T10') flag++;
else if (version == '12.3(4)T11') flag++;
else if (version == '12.3(4)T12') flag++;
else if (version == '12.3(4)T2') flag++;
else if (version == '12.3(4)T2a') flag++;
else if (version == '12.3(4)T3') flag++;
else if (version == '12.3(4)T4') flag++;
else if (version == '12.3(4)T5') flag++;
else if (version == '12.3(4)T6') flag++;
else if (version == '12.3(4)T7') flag++;
else if (version == '12.3(4)T8') flag++;
else if (version == '12.3(4)T9') flag++;
else if (version == '12.3(4)TPC11a') flag++;
else if (version == '12.3(4)TPC11b') flag++;
else if (version == '12.3(4)XD') flag++;
else if (version == '12.3(4)XD1') flag++;
else if (version == '12.3(4)XD2') flag++;
else if (version == '12.3(4)XD3') flag++;
else if (version == '12.3(4)XD4') flag++;
else if (version == '12.3(4)XG') flag++;
else if (version == '12.3(4)XG1') flag++;
else if (version == '12.3(4)XG2') flag++;
else if (version == '12.3(4)XG3') flag++;
else if (version == '12.3(4)XG4') flag++;
else if (version == '12.3(4)XG5') flag++;
else if (version == '12.3(4)XN') flag++;
else if (version == '12.3(4)XN1') flag++;
else if (version == '12.3(4)XN2') flag++;
else if (version == '12.3(4)YE') flag++;
else if (version == '12.3(4)YE1') flag++;
else if (version == '12.3(5)') flag++;
else if (version == '12.3(5a)') flag++;
else if (version == '12.3(5a)B') flag++;
else if (version == '12.3(5a)B0a') flag++;
else if (version == '12.3(5a)B1') flag++;
else if (version == '12.3(5a)B2') flag++;
else if (version == '12.3(5a)B3') flag++;
else if (version == '12.3(5a)B4') flag++;
else if (version == '12.3(5a)B5') flag++;
else if (version == '12.3(5b)') flag++;
else if (version == '12.3(5c)') flag++;
else if (version == '12.3(5d)') flag++;
else if (version == '12.3(5e)') flag++;
else if (version == '12.3(5f)') flag++;
else if (version == '12.3(6)') flag++;
else if (version == '12.3(6a)') flag++;
else if (version == '12.3(6b)') flag++;
else if (version == '12.3(6c)') flag++;
else if (version == '12.3(6d)') flag++;
else if (version == '12.3(6e)') flag++;
else if (version == '12.3(6f)') flag++;
else if (version == '12.3(6r)') flag++;
else if (version == '12.3(7)JA') flag++;
else if (version == '12.3(7)JA1') flag++;
else if (version == '12.3(7)JA2') flag++;
else if (version == '12.3(7)JA3') flag++;
else if (version == '12.3(7)JA4') flag++;
else if (version == '12.3(7)JA5') flag++;
else if (version == '12.3(7)JX') flag++;
else if (version == '12.3(7)JX1') flag++;
else if (version == '12.3(7)JX2') flag++;
else if (version == '12.3(7)JX3') flag++;
else if (version == '12.3(7)JX4') flag++;
else if (version == '12.3(7)JX5') flag++;
else if (version == '12.3(7)JX6') flag++;
else if (version == '12.3(7)JX7') flag++;
else if (version == '12.3(7)JX8') flag++;
else if (version == '12.3(7)JX9') flag++;
else if (version == '12.3(7r)T') flag++;
else if (version == '12.3(7r)T1') flag++;
else if (version == '12.3(7r)T2') flag++;
else if (version == '12.3(7)T') flag++;
else if (version == '12.3(7)T1') flag++;
else if (version == '12.3(7)T10') flag++;
else if (version == '12.3(7)T11') flag++;
else if (version == '12.3(7)T12') flag++;
else if (version == '12.3(7)T2') flag++;
else if (version == '12.3(7)T3') flag++;
else if (version == '12.3(7)T4') flag++;
else if (version == '12.3(7)T5') flag++;
else if (version == '12.3(7)T6') flag++;
else if (version == '12.3(7)T7') flag++;
else if (version == '12.3(7)T8') flag++;
else if (version == '12.3(7)T9') flag++;
else if (version == '12.3(7)XI') flag++;
else if (version == '12.3(7)XI1') flag++;
else if (version == '12.3(7)XI10') flag++;
else if (version == '12.3(7)XI10a') flag++;
else if (version == '12.3(7)XI1a') flag++;
else if (version == '12.3(7)XI1b') flag++;
else if (version == '12.3(7)XI1c') flag++;
else if (version == '12.3(7)XI2') flag++;
else if (version == '12.3(7)XI2a') flag++;
else if (version == '12.3(7)XI2b') flag++;
else if (version == '12.3(7)XI2c') flag++;
else if (version == '12.3(7)XI3') flag++;
else if (version == '12.3(7)XI3a') flag++;
else if (version == '12.3(7)XI3b') flag++;
else if (version == '12.3(7)XI3c') flag++;
else if (version == '12.3(7)XI3d') flag++;
else if (version == '12.3(7)XI3e') flag++;
else if (version == '12.3(7)XI4') flag++;
else if (version == '12.3(7)XI5') flag++;
else if (version == '12.3(7)XI6') flag++;
else if (version == '12.3(7)XI7') flag++;
else if (version == '12.3(7)XI7a') flag++;
else if (version == '12.3(7)XI7b') flag++;
else if (version == '12.3(7)XI7c') flag++;
else if (version == '12.3(7)XI7d') flag++;
else if (version == '12.3(7)XI7e') flag++;
else if (version == '12.3(7)XI7f') flag++;
else if (version == '12.3(7)XI8') flag++;
else if (version == '12.3(7)XI8a') flag++;
else if (version == '12.3(7)XI8b') flag++;
else if (version == '12.3(7)XI8c') flag++;
else if (version == '12.3(7)XI8d') flag++;
else if (version == '12.3(7)XI8e') flag++;
else if (version == '12.3(7)XI8f') flag++;
else if (version == '12.3(7)XI8g') flag++;
else if (version == '12.3(7)XI9') flag++;
else if (version == '12.3(7)XJ') flag++;
else if (version == '12.3(7)XJ1') flag++;
else if (version == '12.3(7)XJ2') flag++;
else if (version == '12.3(7)XL') flag++;
else if (version == '12.3(7)XM') flag++;
else if (version == '12.3(7)XR') flag++;
else if (version == '12.3(7)XR1') flag++;
else if (version == '12.3(7)XR2') flag++;
else if (version == '12.3(7)XR3') flag++;
else if (version == '12.3(7)XR4') flag++;
else if (version == '12.3(7)XR5') flag++;
else if (version == '12.3(7)XR6') flag++;
else if (version == '12.3(7)XR7') flag++;
else if (version == '12.3(7)XS') flag++;
else if (version == '12.3(7)XS1') flag++;
else if (version == '12.3(7)XS2') flag++;
else if (version == '12.3(7)YB') flag++;
else if (version == '12.3(7)YB1') flag++;
else if (version == '12.3(8)JA') flag++;
else if (version == '12.3(8)JA1') flag++;
else if (version == '12.3(8)JA2') flag++;
else if (version == '12.3(8)JEA') flag++;
else if (version == '12.3(8)JEA1') flag++;
else if (version == '12.3(8)JEA2') flag++;
else if (version == '12.3(8)JEB') flag++;
else if (version == '12.3(8)JEB1') flag++;
else if (version == '12.3(8)JED') flag++;
else if (version == '12.3(8)JED1') flag++;
else if (version == '12.3(8)JEE') flag++;
else if (version == '12.3(8)JK') flag++;
else if (version == '12.3(8)JK1') flag++;
else if (version == '12.3(8r)T') flag++;
else if (version == '12.3(8r)T1') flag++;
else if (version == '12.3(8r)T10') flag++;
else if (version == '12.3(8r)T2') flag++;
else if (version == '12.3(8r)T3') flag++;
else if (version == '12.3(8r)T4') flag++;
else if (version == '12.3(8r)T5') flag++;
else if (version == '12.3(8r)T6') flag++;
else if (version == '12.3(8r)T7') flag++;
else if (version == '12.3(8r)T8') flag++;
else if (version == '12.3(8r)T9') flag++;
else if (version == '12.3(8r)YH') flag++;
else if (version == '12.3(8r)YH1') flag++;
else if (version == '12.3(8r)YH10') flag++;
else if (version == '12.3(8r)YH11') flag++;
else if (version == '12.3(8r)YH12') flag++;
else if (version == '12.3(8r)YH13') flag++;
else if (version == '12.3(8r)YH2') flag++;
else if (version == '12.3(8r)YH3') flag++;
else if (version == '12.3(8r)YH4') flag++;
else if (version == '12.3(8r)YH5') flag++;
else if (version == '12.3(8r)YH6') flag++;
else if (version == '12.3(8r)YH7') flag++;
else if (version == '12.3(8r)YH8') flag++;
else if (version == '12.3(8r)YH9') flag++;
else if (version == '12.3(8)T') flag++;
else if (version == '12.3(8)T0a') flag++;
else if (version == '12.3(8)T1') flag++;
else if (version == '12.3(8)T10') flag++;
else if (version == '12.3(8)T11') flag++;
else if (version == '12.3(8)T2') flag++;
else if (version == '12.3(8)T3') flag++;
else if (version == '12.3(8)T4') flag++;
else if (version == '12.3(8)T5') flag++;
else if (version == '12.3(8)T6') flag++;
else if (version == '12.3(8)T7') flag++;
else if (version == '12.3(8)T8') flag++;
else if (version == '12.3(8)T9') flag++;
else if (version == '12.3(8)XU') flag++;
else if (version == '12.3(8)XU1') flag++;
else if (version == '12.3(8)XU2') flag++;
else if (version == '12.3(8)XU3') flag++;
else if (version == '12.3(8)XU4') flag++;
else if (version == '12.3(8)XU5') flag++;
else if (version == '12.3(8)XW') flag++;
else if (version == '12.3(8)XW1') flag++;
else if (version == '12.3(8)XW1a') flag++;
else if (version == '12.3(8)XW1b') flag++;
else if (version == '12.3(8)XW2') flag++;
else if (version == '12.3(8)XW3') flag++;
else if (version == '12.3(8)XX') flag++;
else if (version == '12.3(8)XX1') flag++;
else if (version == '12.3(8)XX2') flag++;
else if (version == '12.3(8)XX2a') flag++;
else if (version == '12.3(8)XX2b') flag++;
else if (version == '12.3(8)XX2c') flag++;
else if (version == '12.3(8)XX2d') flag++;
else if (version == '12.3(8)XX2e') flag++;
else if (version == '12.3(8)XY') flag++;
else if (version == '12.3(8)XY1') flag++;
else if (version == '12.3(8)XY2') flag++;
else if (version == '12.3(8)XY3') flag++;
else if (version == '12.3(8)XY4') flag++;
else if (version == '12.3(8)XY5') flag++;
else if (version == '12.3(8)XY6') flag++;
else if (version == '12.3(8)XY7') flag++;
else if (version == '12.3(8)YA') flag++;
else if (version == '12.3(8)YA1') flag++;
else if (version == '12.3(8)YC') flag++;
else if (version == '12.3(8)YC1') flag++;
else if (version == '12.3(8)YC2') flag++;
else if (version == '12.3(8)YC3') flag++;
else if (version == '12.3(8)YD') flag++;
else if (version == '12.3(8)YD1') flag++;
else if (version == '12.3(8)YG') flag++;
else if (version == '12.3(8)YG1') flag++;
else if (version == '12.3(8)YG2') flag++;
else if (version == '12.3(8)YG3') flag++;
else if (version == '12.3(8)YG4') flag++;
else if (version == '12.3(8)YG5') flag++;
else if (version == '12.3(8)YG6') flag++;
else if (version == '12.3(8)YH') flag++;
else if (version == '12.3(8)YI') flag++;
else if (version == '12.3(8)YI1') flag++;
else if (version == '12.3(8)YI2') flag++;
else if (version == '12.3(8)YI3') flag++;
else if (version == '12.3(8)ZA') flag++;
else if (version == '12.3(8)ZA1') flag++;
else if (version == '12.3(9)') flag++;
else if (version == '12.3(99)T') flag++;
else if (version == '12.3(9a)') flag++;
else if (version == '12.3(9a)BC') flag++;
else if (version == '12.3(9a)BC1') flag++;
else if (version == '12.3(9a)BC2') flag++;
else if (version == '12.3(9a)BC3') flag++;
else if (version == '12.3(9a)BC4') flag++;
else if (version == '12.3(9a)BC5') flag++;
else if (version == '12.3(9a)BC6') flag++;
else if (version == '12.3(9a)BC7') flag++;
else if (version == '12.3(9a)BC8') flag++;
else if (version == '12.3(9a)BC9') flag++;
else if (version == '12.3(9b)') flag++;
else if (version == '12.3(9c)') flag++;
else if (version == '12.3(9d)') flag++;
else if (version == '12.3(9e)') flag++;
else if (version == '12.3(9)M0') flag++;
else if (version == '12.3(9)M1') flag++;
else if (version == '12.3(9r)T') flag++;
else if (version == '12.4(1)') flag++;
else if (version == '12.4(10)') flag++;
else if (version == '12.4(10a)') flag++;
else if (version == '12.4(10b)') flag++;
else if (version == '12.4(10b)JA') flag++;
else if (version == '12.4(10b)JA1') flag++;
else if (version == '12.4(10b)JA2') flag++;
else if (version == '12.4(10b)JA3') flag++;
else if (version == '12.4(10b)JA4') flag++;
else if (version == '12.4(10b)JDA') flag++;
else if (version == '12.4(10b)JDA1') flag++;
else if (version == '12.4(10b)JDA2') flag++;
else if (version == '12.4(10b)JDA3') flag++;
else if (version == '12.4(10b)JDC') flag++;
else if (version == '12.4(10b)JDD') flag++;
else if (version == '12.4(10b)JDE') flag++;
else if (version == '12.4(10b)JX') flag++;
else if (version == '12.4(10b)JY') flag++;
else if (version == '12.4(10c)') flag++;
else if (version == '12.4(11)MD') flag++;
else if (version == '12.4(11)MD1') flag++;
else if (version == '12.4(11)MR') flag++;
else if (version == '12.4(11r)MC') flag++;
else if (version == '12.4(11r)MC1') flag++;
else if (version == '12.4(11r)MC2') flag++;
else if (version == '12.4(11r)MD') flag++;
else if (version == '12.4(11r)XW') flag++;
else if (version == '12.4(11r)XW3') flag++;
else if (version == '12.4(11)SW') flag++;
else if (version == '12.4(11)SW1') flag++;
else if (version == '12.4(11)SW2') flag++;
else if (version == '12.4(11)SW3') flag++;
else if (version == '12.4(11)T') flag++;
else if (version == '12.4(11)T1') flag++;
else if (version == '12.4(11)T2') flag++;
else if (version == '12.4(11)T3') flag++;
else if (version == '12.4(11)XJ') flag++;
else if (version == '12.4(11)XJ1') flag++;
else if (version == '12.4(11)XJ2') flag++;
else if (version == '12.4(11)XJ3') flag++;
else if (version == '12.4(11)XJ4') flag++;
else if (version == '12.4(11)XV') flag++;
else if (version == '12.4(11)XV1') flag++;
else if (version == '12.4(11)XW') flag++;
else if (version == '12.4(11)XW1') flag++;
else if (version == '12.4(11)XW2') flag++;
else if (version == '12.4(12)') flag++;
else if (version == '12.4(123e)TST') flag++;
else if (version == '12.4(123g)TST') flag++;
else if (version == '12.4(12a)') flag++;
else if (version == '12.4(12b)') flag++;
else if (version == '12.4(12c)') flag++;
else if (version == '12.4(12)MR') flag++;
else if (version == '12.4(12)MR1') flag++;
else if (version == '12.4(12)MR2') flag++;
else if (version == '12.4(13)') flag++;
else if (version == '12.4(13a)') flag++;
else if (version == '12.4(13b)') flag++;
else if (version == '12.4(13c)') flag++;
else if (version == '12.4(13d)') flag++;
else if (version == '12.4(13d)JA') flag++;
else if (version == '12.4(13r)T') flag++;
else if (version == '12.4(13r)T1') flag++;
else if (version == '12.4(13r)T10') flag++;
else if (version == '12.4(13r)T11') flag++;
else if (version == '12.4(13r)T12') flag++;
else if (version == '12.4(13r)T13') flag++;
else if (version == '12.4(13r)T14') flag++;
else if (version == '12.4(13r)T15') flag++;
else if (version == '12.4(13r)T16') flag++;
else if (version == '12.4(13r)T2') flag++;
else if (version == '12.4(13r)T3') flag++;
else if (version == '12.4(13r)T4') flag++;
else if (version == '12.4(13r)T5') flag++;
else if (version == '12.4(13r)T6') flag++;
else if (version == '12.4(13r)T7') flag++;
else if (version == '12.4(13r)T8') flag++;
else if (version == '12.4(13r)T9') flag++;
else if (version == '12.4(14r)') flag++;
else if (version == '12.4(14r)T') flag++;
else if (version == '12.4(14)XK') flag++;
else if (version == '12.4(15)SW1') flag++;
else if (version == '12.4(15)SW2') flag++;
else if (version == '12.4(15)SW3') flag++;
else if (version == '12.4(15)SW4') flag++;
else if (version == '12.4(15)SW5') flag++;
else if (version == '12.4(15)SW6') flag++;
else if (version == '12.4(15)SW7') flag++;
else if (version == '12.4(15)SW8') flag++;
else if (version == '12.4(15)SW8a') flag++;
else if (version == '12.4(15)T') flag++;
else if (version == '12.4(15)T1') flag++;
else if (version == '12.4(15)XF') flag++;
else if (version == '12.4(15)XL') flag++;
else if (version == '12.4(15)XL1') flag++;
else if (version == '12.4(15)XL2') flag++;
else if (version == '12.4(15)XL3') flag++;
else if (version == '12.4(15)XL4') flag++;
else if (version == '12.4(15)XL5') flag++;
else if (version == '12.4(16)') flag++;
else if (version == '12.4(16)MR') flag++;
else if (version == '12.4(16)MR1') flag++;
else if (version == '12.4(16)MR2') flag++;
else if (version == '12.4(16)TRY1') flag++;
else if (version == '12.4(17)') flag++;
else if (version == '12.4(17a)') flag++;
else if (version == '12.4(1a)') flag++;
else if (version == '12.4(1b)') flag++;
else if (version == '12.4(1c)') flag++;
else if (version == '12.4(1r)') flag++;
else if (version == '12.4(24r)SB') flag++;
else if (version == '12.4(2)MR') flag++;
else if (version == '12.4(2)MR1') flag++;
else if (version == '12.4(2r)XM1') flag++;
else if (version == '12.4(2)T') flag++;
else if (version == '12.4(2)T1') flag++;
else if (version == '12.4(2)T2') flag++;
else if (version == '12.4(2)T3') flag++;
else if (version == '12.4(2)T4') flag++;
else if (version == '12.4(2)T5') flag++;
else if (version == '12.4(2)XA') flag++;
else if (version == '12.4(2)XA1') flag++;
else if (version == '12.4(2)XA2') flag++;
else if (version == '12.4(2)XB') flag++;
else if (version == '12.4(2)XB052306') flag++;
else if (version == '12.4(2)XB1') flag++;
else if (version == '12.4(2)XB2') flag++;
else if (version == '12.4(2)XB3') flag++;
else if (version == '12.4(2)XB4') flag++;
else if (version == '12.4(2)XB5') flag++;
else if (version == '12.4(2)XB6') flag++;
else if (version == '12.4(3)') flag++;
else if (version == '12.4(3a)') flag++;
else if (version == '12.4(3b)') flag++;
else if (version == '12.4(3c)') flag++;
else if (version == '12.4(3d)') flag++;
else if (version == '12.4(3e)') flag++;
else if (version == '12.4(3f)') flag++;
else if (version == '12.4(3g)') flag++;
else if (version == '12.4(3g)JA') flag++;
else if (version == '12.4(3g)JA1') flag++;
else if (version == '12.4(3g)JMB') flag++;
else if (version == '12.4(3g)JMC') flag++;
else if (version == '12.4(3g)JMC1') flag++;
else if (version == '12.4(3g)JMC2') flag++;
else if (version == '12.4(3g)JX') flag++;
else if (version == '12.4(3g)JX1') flag++;
else if (version == '12.4(3h)') flag++;
else if (version == '12.4(3h)BAK') flag++;
else if (version == '12.4(4)MR') flag++;
else if (version == '12.4(4)MR1') flag++;
else if (version == '12.4(4r)XC') flag++;
else if (version == '12.4(4r)XD') flag++;
else if (version == '12.4(4r)XD1') flag++;
else if (version == '12.4(4r)XD2') flag++;
else if (version == '12.4(4r)XD3') flag++;
else if (version == '12.4(4r)XD4') flag++;
else if (version == '12.4(4r)XD5') flag++;
else if (version == '12.4(4)T') flag++;
else if (version == '12.4(4)T1') flag++;
else if (version == '12.4(4)T2') flag++;
else if (version == '12.4(4)T3') flag++;
else if (version == '12.4(4)T4') flag++;
else if (version == '12.4(4)T5') flag++;
else if (version == '12.4(4)T6') flag++;
else if (version == '12.4(4)T7') flag++;
else if (version == '12.4(4)T8') flag++;
else if (version == '12.4(4)XC') flag++;
else if (version == '12.4(4)XC1') flag++;
else if (version == '12.4(4)XC2') flag++;
else if (version == '12.4(4)XC3') flag++;
else if (version == '12.4(4)XC4') flag++;
else if (version == '12.4(4)XC5') flag++;
else if (version == '12.4(4)XC6') flag++;
else if (version == '12.4(4)XC7') flag++;
else if (version == '12.4(4)XD') flag++;
else if (version == '12.4(4)XD0') flag++;
else if (version == '12.4(4)XD1') flag++;
else if (version == '12.4(4)XD10') flag++;
else if (version == '12.4(4)XD11') flag++;
else if (version == '12.4(4)XD12') flag++;
else if (version == '12.4(4)XD2') flag++;
else if (version == '12.4(4)XD3') flag++;
else if (version == '12.4(4)XD4') flag++;
else if (version == '12.4(4)XD5') flag++;
else if (version == '12.4(4)XD6') flag++;
else if (version == '12.4(4)XD7') flag++;
else if (version == '12.4(4)XD7a') flag++;
else if (version == '12.4(4)XD7b') flag++;
else if (version == '12.4(4)XD7c') flag++;
else if (version == '12.4(4)XD8') flag++;
else if (version == '12.4(4)XD8a') flag++;
else if (version == '12.4(4)XD9') flag++;
else if (version == '12.4(5)') flag++;
else if (version == '12.4(555)TEST') flag++;
else if (version == '12.4(567b)TST') flag++;
else if (version == '12.4(57)ARF') flag++;
else if (version == '12.4(57)ARF2') flag++;
else if (version == '12.4(57)COMP') flag++;
else if (version == '12.4(5a)') flag++;
else if (version == '12.4(5a)M0') flag++;
else if (version == '12.4(5b)') flag++;
else if (version == '12.4(5c)') flag++;
else if (version == '12.4(6)MR') flag++;
else if (version == '12.4(6)MR1') flag++;
else if (version == '12.4(6r)XE') flag++;
else if (version == '12.4(6)T') flag++;
else if (version == '12.4(6)T1') flag++;
else if (version == '12.4(6)T2') flag++;
else if (version == '12.4(6)T3') flag++;
else if (version == '12.4(6)T4') flag++;
else if (version == '12.4(6)T5') flag++;
else if (version == '12.4(6)T5a') flag++;
else if (version == '12.4(6)T6') flag++;
else if (version == '12.4(6)T7') flag++;
else if (version == '12.4(6)T8') flag++;
else if (version == '12.4(6t)EB2') flag++;
else if (version == '12.4(6t)EB3') flag++;
else if (version == '12.4(6t)EB4') flag++;
else if (version == '12.4(6t)EB5') flag++;
else if (version == '12.4(6)XE') flag++;
else if (version == '12.4(6)XE1') flag++;
else if (version == '12.4(6)XE2') flag++;
else if (version == '12.4(6)XE3') flag++;
else if (version == '12.4(6)XP') flag++;
else if (version == '12.4(6)XT') flag++;
else if (version == '12.4(6)XT1') flag++;
else if (version == '12.4(7)') flag++;
else if (version == '12.4(77)T') flag++;
else if (version == '12.4(789a)TST') flag++;
else if (version == '12.4(7a)') flag++;
else if (version == '12.4(7b)') flag++;
else if (version == '12.4(7c)') flag++;
else if (version == '12.4(7d)') flag++;
else if (version == '12.4(7e)') flag++;
else if (version == '12.4(7f)') flag++;
else if (version == '12.4(8)') flag++;
else if (version == '12.4(80)TEST') flag++;
else if (version == '12.4(8a)') flag++;
else if (version == '12.4(8b)') flag++;
else if (version == '12.4(8c)') flag++;
else if (version == '12.4(8d)') flag++;
else if (version == '12.4(99)') flag++;
else if (version == '12.4(99)TEST4') flag++;
else if (version == '12.4(9)MR') flag++;
else if (version == '12.4(9)T') flag++;
else if (version == '12.4(9)T0a') flag++;
else if (version == '12.4(9)T1') flag++;
else if (version == '12.4(9)T2') flag++;
else if (version == '12.4(9)T3') flag++;
else if (version == '12.4(9)T4') flag++;
else if (version == '12.4(9)T5') flag++;
else if (version == '12.4(9)XG') flag++;
else if (version == '12.4(9)XG1') flag++;
else if (version == '12.5(1)') flag++;
else if (version == '12.5(88888883)') flag++;
else if (version == '12.5(888888882)') flag++;
else if (version == '12.9(9)S0225') flag++;
else if (version == '15.0(1)') flag++;
else if (version == '15.0(1)M1') flag++;
else if (version == '15.0(1)M2') flag++;
else if (version == '15.0(1)M3') flag++;
else if (version == '15.0(1)M4') flag++;
else if (version == '15.0(1)M5') flag++;
else if (version == '15.0(1)M6') flag++;
else if (version == '15.0(1)M6a') flag++;
else if (version == '15.0(1)M7') flag++;
else if (version == '15.0(98)CCAI') flag++;
else if (version == '15.0(9988)M1') flag++;
else if (version == '15.0(9999)M1') flag++;
else if (version == '15.1(4)') flag++;
else if (version == '15.1(4)M0a') flag++;
else if (version == '15.1(4)M0b') flag++;
else if (version == '15.1(4)M1') flag++;
else if (version == '15.1(4)M2') flag++;
else if (version == '15.1(4)M3') flag++;
else if (version == '15.1(4)M3a') flag++;
else if (version == '15.1(4r)M2') flag++;
else if (version == '15.1(4)XB4') flag++;
else if (version == '15.1(4)XB5') flag++;
else if (version == '15.1(4)XB5a') flag++;
else if (version == '15.1(4)XB6') flag++;
else if (version == '15.1(4)XB7') flag++;


if (get_kb_item("Host/local_checks_enabled"))
{
  if (flag)
  {
    flag = 0;
    buf = cisco_command_kb_item("Host/Cisco/Config/show_running-config", "show running-config");
    if (check_cisco_result(buf))
    {
      if (preg(pattern:"printer ", multiline:TRUE, string:buf)) { flag = 1; }
    } else if (cisco_needs_enable(buf)) { flag = 1; override = 1; }
  }
}


if (flag)
{
  security_hole(port:0, extra:cisco_caveat(override));
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");