tis-cyberwatch-agent icon

Cyberwatch Agent

Paquet d’installation silencieuse pour Cyberwatch Agent

4.14-0

  • package: tis-cyberwatch-agent
  • name: Cyberwatch Agent
  • version: 4.14-0
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT
  • editor: Cyberwatch
  • locale: all
  • target_os: macos
  • architecture: x64
  • signature_date:
  • size: 24.08 Ko
  • installed_size: 179.06 Mo
  • homepage : https://cyberwatch.fr

package           : tis-cyberwatch-agent
version           : 4.14-0
architecture      : x64
section           : base
priority          : optional
name              : Cyberwatch Agent
categories        : Security
maintainer        : WAPT Team,Tranquil IT
description       : Cyberwatch Vulnerability Manager is a vulnerability management platform with Assets mapping, Vulnerability scanning, Prioritization. Vulnerability Manage
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : macos
min_wapt_version  : 2.0
sources           : 
installed_size    : 179061248
impacted_process  : 
description_fr    : Cyberwatch Vulnerability Manager est une plateforme de gestion des vulnérabilités avec cartographie des actifs, analyse des vulnérabilités et priorisation. Gestion des vulnérabilités
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Cyberwatch
keywords          : 
licence           : 
homepage          : https://cyberwatch.fr
package_uuid      : 25d1541d-abcc-44fd-9f40-5c05029a0fa3
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://docs.cyberwatch.fr/help/fr/general_administration_software/changelog/agent/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 84c8d943064b7613cd3ed456ddd81ab07c487931ae81fbbe029c670255d379d2
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Atd+zWuqtRBAgOb6Sc5Bk+mH0ebetmEiDFY63hy6Xf4bQvqj055P77ctVEWuyVNjSYHSvPLdpOgf5EtNe2Rkl5wXwCN/76uxSDydQli+17u2yFeHUyCGbfbyv1WairH0sRLCPETiSZlE7nc7fj2sP6H9eeUfkv5lX+qkxKa4bsYJ2ItcxE8Kn6MtvOnt5qhQ/qDoj5zshVgG5BAgVrZuqjnV3hLNkgWlWI6Rp0LRIClgFopPOaZWx/c2EPBUqJ6G3wznI2gXp+acNuacN9gLQuXGTj6zRoccJ1ZXDe48rlMICjal0WW7Bk2zW5GxvdfdDoT+gnIgNHQGXOiNkjPZtg==
signature_date    : 2024-07-20T13:00:49.099329
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

from setuphelpers import *


def install():
    # Declaring local variables
    bin_name = glob.glob("*.pkg")[0]
    install_pkg(bin_name,key="pkgid:fr.cyberwatch.agent.pkg",min_version=control.get_software_version())

from setupdevhelpers import *
import xml.etree.ElementTree as ET
import json
import glob



def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    wget("https://demo.cyberwatch.fr/repos/mac/cyberwatch-agent.pkg","cyberwatch-agent.pkg",proxies=proxies)

    version = get_version_cyb("cyberwatch-agent.pkg")


    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))

    control.set_software_version(version)
    control.save_control_to_wapt()

    return result
    
def get_version_cyb(pkg_path):
    '''
    Get the properties of a .pkg file by getting the Info.plist of the package

    Args:
        pkg_path: path to .pkg file
        app_name: name of the app contained in the .pkg file

    Returns:
        plist_read: dict of Info.plist file
    '''

    # Extracting .pkg file
    run(rf"pkgutil --expand-full {pkg_path} extracted_pkg/")

    with open(r"extracted_pkg/Distribution") as f :
        data = f.read()

    tree = ET.ElementTree(ET.fromstring(data))
    root = tree.getroot()
    g = root.findall('pkg-ref')[0]
    version = g.attrib['version']

    remove_tree("extracted_pkg/")

    return version

e2295bd3762fd129bea70d76aab6735d16d13204b8737f6c8828b05ff537cdfc : setup.py
eff57e94cb6bc622a28a965a1dcb37d630d5840f7be7847926545fc3a02c9536 : cyberwatch-agent.pkg
096094e1a6ae7e9df86b2d8ac7a4ec294bccd86cbecf7357f9ac829ab9475e21 : update_package.py
84c8d943064b7613cd3ed456ddd81ab07c487931ae81fbbe029c670255d379d2 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
80487a6c2bc61185c76b3ce9636ae44d062cff8aec4e9d756e1f3523cb7e02a7 : luti.json
42894f0ec110d8a91d5e9ac8e5db5791a7bf39d41d3b49f8bf25b3ae32f3bf8b : WAPT/control