Lucene search
+L

Panda Antivirus Update Detection (Windows SMB Login)

🗓️ 08 Jul 2010 00:00:00Reported by Copyright (C) 2010 LSSType 
openvas
 openvas
🔗 plugins.openvas.org👁 9 Views

Panda Antivirus Update Detection (Windows SMB Login) to extract last update dat

Code
# SPDX-FileCopyrightText: 2010 LSS
# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.102048");
  script_version("2023-07-28T16:09:07+0000");
  script_tag(name:"last_modification", value:"2023-07-28 16:09:07 +0000 (Fri, 28 Jul 2023)");
  script_tag(name:"creation_date", value:"2010-07-08 10:59:30 +0200 (Thu, 08 Jul 2010)");
  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("Panda Antivirus Update Detection (Windows SMB Login)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 LSS");
  script_family("Service detection");
  script_dependencies("smb_reg_service_pack.nasl", "gb_panda_prdts_detect.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("Panda/Products/Installed");

  script_tag(name:"summary", value:"Extracts date of the last update for Panda Antivirus software, from the
  Titanium.ini file and stores it to KB.");

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

  exit(0);
}

# This script is tested on Panda Antivirus 2005 through 2007
# For other versions of Panda software might not work due to non-existent titanium.ini file

include("smb_nt.inc");
include("secpod_smb_func.inc");

if(!registry_key_exists(key:"SOFTWARE\Panda Software")){
  exit(0);
}

#reading install directories from the registry
key = "SOFTWARE\Panda Software\";
foreach item (registry_enum_keys(key:key))
{
  ##  Check for the Internet Security
  if("Panda Internet Security" >< item)
    paths[0] = registry_get_sz(key:key + item, item:"DIR");

  ##  Check for the Global Protection
  if("Panda Global Protection" >< item)
    paths[1] = registry_get_sz(key:key + item, item:"DIR");

  ##  Check for the Antivirus
  if("Panda Antivirus" >< item)
    paths[2] = registry_get_sz(key:key + item, item:"DIR");
}

for(i = 0; i < 3; i++){

  if(paths[i]){
    last_update = smb_read_file(fullpath:paths[i] + "\Titanium.ini", offset:0, count:1000);
    last_update = egrep(pattern:"^PavSigDate=(.*)$", string:last_update);
    last_update = ereg_replace(pattern:"^PavSigDate=(.*)$", replace:"\1", string:last_update);
    last_update = last_update - string("\r\n"); #removing the endline chars

    if(!last_update) {
      log_message(data:"Could not find last date of signature base update in file Titanium.ini");
      exit(0);
    }

    set_kb_item(name:"Panda/LastUpdate/Available", value:TRUE);

    if(i == 0)
      set_kb_item(name:"Panda/InternetSecurity/LastUpdate", value:last_update);
    if(i == 1)
      set_kb_item(name:"Panda/GlobalProtect/LastUpdate", value:last_update);
    if(i == 2)
      set_kb_item(name:"Panda/AntiVirus/LastUpdate", value:last_update);
  }
}

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

28 Jul 2023 00:00Current
7High risk
Vulners AI Score7
9