tis-cyberwatch-agent icon

Cyberwatch Agent

Paquet d’installation silencieuse pour Cyberwatch Agent

4.16-0

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

package           : tis-cyberwatch-agent
version           : 4.16-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      : 4b60300f-7799-464b-b75a-f9174d7a693c
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_date    : 2025-04-12T10:00:23.000000
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
signature         : IXjtGKD9nB2uPQkjzWy4DCH05LUCAtzBsZ/Acqbu8n/bw0aKKvc49XiVD+Z576GjL89401NH1HzNixMzX0Yfby0nZt2OmtCPC8jvP4wW1UVOxG5uf0BSMu7gDR4mU+/liDaRxAtRz6Kg069OCLyEm4VBD5E/BsveL3MNyamomHTWjyktz7vDJ8KuseiGMVxvKJE4FDEPT1GeGSQd60EDq5pD358RzaitNctFtPLY8LhpmWfjTpV8V2EIrz+tvfwWl0uUZxMceCF6UeiJwqMg9v7cZSWaAlcbUs3NnSgAGrnsOd+YR44+USxd9/8ui0Em3m7AQrMJ7OrN0MO4Epx7zg==

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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
c48997473d95002b9a4d0ddb4250c1a449a1abeb3934024b41049839d2c12152 : WAPT/control
84c8d943064b7613cd3ed456ddd81ab07c487931ae81fbbe029c670255d379d2 : WAPT/icon.png
01554b2495078e914e118d5d26c23be4491a9c22f6264a933bd401fad61e4061 : cyberwatch-agent.pkg
de4f43e89131b1d9a7b377016b14f658de5b3453f822c395b8bd9a893dd811c7 : luti.json
e2295bd3762fd129bea70d76aab6735d16d13204b8737f6c8828b05ff537cdfc : setup.py
096094e1a6ae7e9df86b2d8ac7a4ec294bccd86cbecf7357f9ac829ab9475e21 : update_package.py