tis-crowdsec icon

crowdsec

Paquet d’installation silencieuse pour crowdsec

1.6.6-1

  • package: tis-crowdsec
  • name: crowdsec
  • version: 1.6.6-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: MIT license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 96.93 Mo
  • homepage : crowdsec.net

package           : tis-crowdsec
version           : 1.6.6-1
architecture      : x64
section           : base
priority          : optional
name              : crowdsec
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : CrowdSec is a free, modern and collaborative behavior detection engine, coupled with a global IP reputation network
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/crowdsecurity/crowdsec
installed_size    : 
impacted_process  : 
description_fr    : CrowdSec est un moteur de détection des comportements gratuit, moderne et collaboratif, associé à un réseau mondial de réputation IP
description_pl    : CrowdSec to darmowy, nowoczesny i oparty na współpracy mechanizm wykrywania zachowań, połączony z globalną siecią reputacji IP
description_de    : CrowdSec ist eine kostenlose, moderne und kollaborative Verhaltenserkennungs-Engine, gekoppelt mit einem globalen IP-Reputationsnetzwerk
description_es    : CrowdSec es un motor de detección de comportamientos gratuito, moderno y colaborativo, unido a una red global de reputación IP
description_pt    : O CrowdSec é um motor de deteção de comportamentos gratuito, moderno e colaborativo, associado a uma rede global de reputação de IP
description_it    : CrowdSec è un motore di rilevamento del comportamento gratuito, moderno e collaborativo, abbinato a una rete globale di reputazione IP
description_nl    : CrowdSec is een gratis, moderne en collaboratieve engine voor gedragsdetectie, gekoppeld aan een wereldwijd IP-reputatienetwerk
description_ru    : CrowdSec - это бесплатная, современная и совместная система обнаружения поведения в сочетании с глобальной сетью IP-репутации
audit_schedule    : 
editor            : 
keywords          : 
licence           : MIT license
homepage          : crowdsec.net
package_uuid      : 9e988b42-03e5-4c48-9764-5de0bed67e02
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-24T12:00:15.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         : Wr43KL9DTkqeZVnPuBswnC9I2AeQCk2HPtLktraVCd9EQBz2F6y33npbpRpO9p7xiJggvtbZKP7ct3DcFP8ZsNcI4vmwBD52xNkN7cnHIHfItxlG2Ht029sci/B+b7ewHhG5kKxhVYRxeW4UZ66A1GqKIOKX3CvayXc6Yymw1Hq3AZrJuuoHCKudKbYoCwwztfFk+jzLAjtrNwxTTXr2b0qgdw76La16woP6L+UEEKGTxRD1yIJCuoqzP2R/Jj6frsFhI6j8dKQWkzL5Y0XplXT/qAzjfE0lksDywLLhzZWk1p6QSisyjSL2blxWHjWsHz2TPYcyEI1yIh53h13ZTA==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('crowdsec_*.msi')[0]
    # Uninstalling older major versions of the software
    for to_uninstall in installed_softwares(name="crowdsec"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(ensure_list(control.impacted_process))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    # Installing the software
    
    install_msi_if_needed(bin_name)



# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def update_package():
    result = False
    proxies = get_proxies()
    
    if not proxies:
        proxies = get_proxies_from_wapt_console()
   
    git_repo = "crowdsecurity/crowdsec"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.msi') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.msi'):
        if f != filename:
            remove_file(f)
    version =get_version_from_binary(filename)
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
aa49d8d3bc4b8382b8597d7c8dcb12cd0f5f4d146c63cc94f87d6798cec1c07a : WAPT/control
da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1 : WAPT/icon.png
74db17dfea4e40f5a0713e87c9e8b3dd0bc78dd494c8c669af57017de94b4d26 : crowdsec_1.6.6.msi
78ef725e0f10794ee9b024e312c95102b2d6b86e8f411d1a860b95d7e604031e : luti.json
4eb75a6a865caaff163f814e17e40b74d4bc8353813e8684422933a878e7acb8 : setup.py
6ac0f5d3f65cff87f7838f158441d7c9ade346d0c813829b053765d09787a186 : update_package.py