
crowdsec
Silent install package for crowdsec
1.7.0-1
- package: tis-crowdsec
- name: crowdsec
- version: 1.7.0-1
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x64
- signature_date:
- size: 75.70 Mo
- homepage : crowdsec.net
- depends:
package : tis-crowdsec
version : 1.7.0-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 : 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 : 43d89894-d4c5-44b0-b596-d78f4988ac0d
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-09-08T00:04: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 : po1IgjWjkYRdciHIIzHpFutJ2+aZinFYwlACwjeSB4p7N0TgRSdj/jCeedPlfU8wjV9wi8GCb10DcUnQOOpQgZoYwKWWM4RsQEOSyD3yhHVefMkKHkP0fa5jz7c8uUkOb6XDwWW8mlgGxnoRXgViOVGDlsF2aOUTTLOVoktPgzcqGHYYDX0MEKY+BfQg3wHVmFx+OGX3BUzQqWnQA8ZeVExkthr7CCjfe+ejPE794GLJEgz6b6h25pRbToGwngR7j2oqJ5DvaDn9U3FfxGCiokga1aos4htkpkAac8a5HZd5eMKF01hPKryDbQCbhALhFWOGtK40Xtr7Fr9tkuKpkg==
# -*- 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
bcafccbde23cfab7a9e8b10221755159e7f9d523cdd9bcddfc289f971434bb19 : WAPT/control
da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1 : WAPT/icon.png
5c8bdcf499a43293c661b478aee036a498532ed3048cb29b91a4a9c363ec7814 : crowdsec_1.7.0.msi
b70f67490e67d4797806eca81f583993f6fbc632032149b7904f00c4b7b8d959 : luti.json
4eb75a6a865caaff163f814e17e40b74d4bc8353813e8684422933a878e7acb8 : setup.py
6ac0f5d3f65cff87f7838f158441d7c9ade346d0c813829b053765d09787a186 : update_package.py