tis-crowdsec icon

crowdsec

Silent install package for crowdsec

1.7.5-1

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

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

package           : tis-crowdsec
version           : 1.7.5-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           : tis-vcredist2015-2022
conflicts         : 
maturity          : PREPROD
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      : d2e31f37-cf43-4858-a638-b9e43a918a96
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-01-22T15:25:39.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         : meTG9s1M5uDVK/x2JZVdQIiHP/fcFCveW+qnkm5JIfxwvesofaTzbrlLkN8Cz5NtAFntLe8O+qPOOxMoDOGZAFgAVvF6WViFpRpov32ejSgLblNkTu6dY/usGjHBUw30ILDgzpPYfF/q9WX2VO5VGb5PsAOSA++tsJRlXgFvlmvIoD8ak/nAdwShtrr2+eiHlcZ+5FlbT82hQ97i7ZUBK6kBwGzkIYUTiZYJ/vAqrmhjhVyW7i2Me/9R6tg17Wyiggr1SNK5yZABOCMyallULAo+An5aKMQWe0jc44DreThInTss/wBc0JzKSpj3mGOftGhKSgP7FB419FJENFCnEw==

# -*- 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()

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
d68ea9be558625d876b5ea9760273b70f2426d6ef85d306b18c3b38072e4a2ca : WAPT/control
da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1 : WAPT/icon.png
4df6b012ac2285f2ac8fadccee2890a340a811f0985583606c96d19f342fbed8 : crowdsec_1.7.5.msi
b05cb137533e7d97940192457bc6cd190362398a54698eae4ed02c963fba3c12 : luti.json
4eb75a6a865caaff163f814e17e40b74d4bc8353813e8684422933a878e7acb8 : setup.py
6ac0f5d3f65cff87f7838f158441d7c9ade346d0c813829b053765d09787a186 : update_package.py